pub struct DraftEmbedImageBuilder<St: State, S: BosStr = DefaultStr> { /* private fields */ }Expand description
Builder for constructing an instance of this type.
Implementations§
Source§impl<S: BosStr> DraftEmbedImageBuilder<Empty, S>
impl<S: BosStr> DraftEmbedImageBuilder<Empty, S>
Source§impl<St: State, S: BosStr> DraftEmbedImageBuilder<St, S>
impl<St: State, S: BosStr> DraftEmbedImageBuilder<St, S>
Source§impl<St, S: BosStr> DraftEmbedImageBuilder<St, S>
impl<St, S: BosStr> DraftEmbedImageBuilder<St, S>
Sourcepub fn local_ref(
self,
value: impl Into<DraftEmbedLocalRef<S>>,
) -> DraftEmbedImageBuilder<SetLocalRef<St>, S>
pub fn local_ref( self, value: impl Into<DraftEmbedLocalRef<S>>, ) -> DraftEmbedImageBuilder<SetLocalRef<St>, S>
Set the localRef field (required)
Source§impl<St, S: BosStr> DraftEmbedImageBuilder<St, S>
impl<St, S: BosStr> DraftEmbedImageBuilder<St, S>
Sourcepub fn build(self) -> DraftEmbedImage<S>
pub fn build(self) -> DraftEmbedImage<S>
Build the final struct.
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<S>>,
) -> DraftEmbedImage<S>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> DraftEmbedImage<S>
Build the final struct with custom extra_data.
Auto Trait Implementations§
impl<St, S> Freeze for DraftEmbedImageBuilder<St, S>where
S: Freeze,
impl<St, S> RefUnwindSafe for DraftEmbedImageBuilder<St, S>where
S: RefUnwindSafe,
impl<St, S> Send for DraftEmbedImageBuilder<St, S>where
S: Send,
impl<St, S> Sync for DraftEmbedImageBuilder<St, S>where
S: Sync,
impl<St, S> Unpin for DraftEmbedImageBuilder<St, S>where
S: Unpin,
impl<St, S> UnsafeUnpin for DraftEmbedImageBuilder<St, S>where
S: UnsafeUnpin,
impl<St, S> UnwindSafe for DraftEmbedImageBuilder<St, S>where
S: UnwindSafe + RefUnwindSafe,
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