#[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
source§fn eq(&self, other: &GenericAttachmentBuilder) -> bool
fn eq(&self, other: &GenericAttachmentBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GenericAttachmentBuilder
Auto Trait Implementations§
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> 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>
Creates a shared type from an unshared type.