pub struct VimeoEmbed {
pub url: VimeoUrl,
pub start_at: Option<u32>,
pub end_at: Option<u32>,
pub captions: bool,
pub muted: bool,
pub autoplay: bool,
pub done_action: Option<DoneAction>,
}
Expand description
Vimeo host embed
Fields§
§url: VimeoUrl
url of the Vimeo embed
start_at: Option<u32>
start at second
end_at: Option<u32>
end at second
captions: bool
show captions
muted: bool
play with sound
autoplay: bool
autoplay
done_action: Option<DoneAction>
what to do when done
Implementations§
Source§impl VimeoEmbed
impl VimeoEmbed
Sourcepub fn done_action(self, value: Option<DoneAction>) -> Self
pub fn done_action(self, value: Option<DoneAction>) -> Self
Sets the done_action
field of this struct.
Trait Implementations§
Source§impl Clone for VimeoEmbed
impl Clone for VimeoEmbed
Source§fn clone(&self) -> VimeoEmbed
fn clone(&self) -> VimeoEmbed
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VimeoEmbed
impl Debug for VimeoEmbed
Source§impl<'de> Deserialize<'de> for VimeoEmbed
impl<'de> Deserialize<'de> for VimeoEmbed
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VimeoEmbed
impl PartialEq for VimeoEmbed
Source§impl Serialize for VimeoEmbed
impl Serialize for VimeoEmbed
impl StructuralPartialEq for VimeoEmbed
Auto Trait Implementations§
impl Freeze for VimeoEmbed
impl RefUnwindSafe for VimeoEmbed
impl Send for VimeoEmbed
impl Sync for VimeoEmbed
impl Unpin for VimeoEmbed
impl UnwindSafe for VimeoEmbed
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more