pub struct EmbedBuilder(/* private fields */);Expand description
Builds an Embed (§8.5). Pictures are attachment ids of the same message.
Implementations§
Source§impl EmbedBuilder
impl EmbedBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
An empty embed; give it at least a title, description, field, author or footer.
Sourcepub fn description(self, d: impl Into<String>) -> Self
pub fn description(self, d: impl Into<String>) -> Self
Description (≤ 4 096).
Author line.
Footer text.
Sourcepub fn image(self, attachment: impl Into<Id>) -> Self
pub fn image(self, attachment: impl Into<Id>) -> Self
Large picture: an image attachment of the same message.
Sourcepub fn thumbnail(self, attachment: impl Into<Id>) -> Self
pub fn thumbnail(self, attachment: impl Into<Id>) -> Self
Small picture: an image attachment of the same message.
Trait Implementations§
Source§impl Clone for EmbedBuilder
impl Clone for EmbedBuilder
Source§fn clone(&self) -> EmbedBuilder
fn clone(&self) -> EmbedBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EmbedBuilder
impl Debug for EmbedBuilder
Source§impl Default for EmbedBuilder
impl Default for EmbedBuilder
Source§impl From<EmbedBuilder> for Reply
impl From<EmbedBuilder> for Reply
Source§fn from(embed: EmbedBuilder) -> Self
fn from(embed: EmbedBuilder) -> Self
Converts to this type from the input type.
Source§impl From<EmbedBuilder> for Embed
impl From<EmbedBuilder> for Embed
Source§fn from(b: EmbedBuilder) -> Self
fn from(b: EmbedBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EmbedBuilder
impl RefUnwindSafe for EmbedBuilder
impl Send for EmbedBuilder
impl Sync for EmbedBuilder
impl Unpin for EmbedBuilder
impl UnsafeUnpin for EmbedBuilder
impl UnwindSafe for EmbedBuilder
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