pub struct DraftEmbedVideoBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> DraftEmbedVideoBuilder<'a, Empty>
impl<'a> DraftEmbedVideoBuilder<'a, Empty>
Source§impl<'a, S: State> DraftEmbedVideoBuilder<'a, S>
impl<'a, S: State> DraftEmbedVideoBuilder<'a, S>
Source§impl<'a, S: State> DraftEmbedVideoBuilder<'a, S>
impl<'a, S: State> DraftEmbedVideoBuilder<'a, S>
Sourcepub fn captions(
self,
value: impl Into<Option<Vec<DraftEmbedCaption<'a>>>>,
) -> Self
pub fn captions( self, value: impl Into<Option<Vec<DraftEmbedCaption<'a>>>>, ) -> Self
Set the captions field (optional)
Sourcepub fn maybe_captions(self, value: Option<Vec<DraftEmbedCaption<'a>>>) -> Self
pub fn maybe_captions(self, value: Option<Vec<DraftEmbedCaption<'a>>>) -> Self
Set the captions field to an Option value (optional)
Source§impl<'a, S> DraftEmbedVideoBuilder<'a, S>
impl<'a, S> DraftEmbedVideoBuilder<'a, S>
Sourcepub fn local_ref(
self,
value: impl Into<DraftEmbedLocalRef<'a>>,
) -> DraftEmbedVideoBuilder<'a, SetLocalRef<S>>
pub fn local_ref( self, value: impl Into<DraftEmbedLocalRef<'a>>, ) -> DraftEmbedVideoBuilder<'a, SetLocalRef<S>>
Set the localRef field (required)
Source§impl<'a, S> DraftEmbedVideoBuilder<'a, S>
impl<'a, S> DraftEmbedVideoBuilder<'a, S>
Sourcepub fn build(self) -> DraftEmbedVideo<'a>
pub fn build(self) -> DraftEmbedVideo<'a>
Build the final struct
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<'a>>,
) -> DraftEmbedVideo<'a>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<'a>>, ) -> DraftEmbedVideo<'a>
Build the final struct with custom extra_data
Auto Trait Implementations§
impl<'a, S> Freeze for DraftEmbedVideoBuilder<'a, S>
impl<'a, S> RefUnwindSafe for DraftEmbedVideoBuilder<'a, S>
impl<'a, S> Send for DraftEmbedVideoBuilder<'a, S>
impl<'a, S> Sync for DraftEmbedVideoBuilder<'a, S>
impl<'a, S> Unpin for DraftEmbedVideoBuilder<'a, S>
impl<'a, S> UnsafeUnpin for DraftEmbedVideoBuilder<'a, S>
impl<'a, S> UnwindSafe for DraftEmbedVideoBuilder<'a, S>
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