#[non_exhaustive]pub struct GenericAttachmentBuilder { /* private fields */ }
Expand description
A builder for GenericAttachment
.
Implementations§
source§impl GenericAttachmentBuilder
impl GenericAttachmentBuilder
sourcepub fn set_sub_title(self, input: Option<String>) -> Self
pub fn set_sub_title(self, input: Option<String>) -> Self
The subtitle shown below the title.
sourcepub fn get_sub_title(&self) -> &Option<String>
pub fn get_sub_title(&self) -> &Option<String>
The subtitle shown below the title.
sourcepub fn attachment_link_url(self, input: impl Into<String>) -> Self
pub fn attachment_link_url(self, input: impl Into<String>) -> Self
The URL of an attachment to the response card.
sourcepub fn set_attachment_link_url(self, input: Option<String>) -> Self
pub fn set_attachment_link_url(self, input: Option<String>) -> Self
The URL of an attachment to the response card.
sourcepub fn get_attachment_link_url(&self) -> &Option<String>
pub fn get_attachment_link_url(&self) -> &Option<String>
The URL of an attachment to the response card.
sourcepub fn image_url(self, input: impl Into<String>) -> Self
pub fn image_url(self, input: impl Into<String>) -> Self
The URL of an image that is displayed to the user.
sourcepub fn set_image_url(self, input: Option<String>) -> Self
pub fn set_image_url(self, input: Option<String>) -> Self
The URL of an image that is displayed to the user.
sourcepub fn get_image_url(&self) -> &Option<String>
pub fn get_image_url(&self) -> &Option<String>
The URL of an image that is displayed to the user.
Appends an item to buttons
.
To override the contents of this collection use set_buttons
.
The list of options to show to the user.
The list of options to show to the user.
The list of options to show to the user.
sourcepub fn build(self) -> GenericAttachment
pub fn build(self) -> GenericAttachment
Consumes the builder and constructs a GenericAttachment
.
Trait Implementations§
source§impl Clone for GenericAttachmentBuilder
impl Clone for GenericAttachmentBuilder
source§fn clone(&self) -> GenericAttachmentBuilder
fn clone(&self) -> GenericAttachmentBuilder
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 GenericAttachmentBuilder
impl Debug for GenericAttachmentBuilder
source§impl Default for GenericAttachmentBuilder
impl Default for GenericAttachmentBuilder
source§fn default() -> GenericAttachmentBuilder
fn default() -> GenericAttachmentBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for GenericAttachmentBuilder
impl PartialEq for GenericAttachmentBuilder
impl StructuralPartialEq for GenericAttachmentBuilder
Auto Trait Implementations§
impl Freeze for GenericAttachmentBuilder
impl RefUnwindSafe for GenericAttachmentBuilder
impl Send for GenericAttachmentBuilder
impl Sync for GenericAttachmentBuilder
impl Unpin for GenericAttachmentBuilder
impl UnwindSafe for GenericAttachmentBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.