pub struct EmbedFieldBuilder(/* private fields */);
Available on crate feature
builder
only.Expand description
Create an embed field with a builder.
This can be passed into EmbedBuilder::field
.
Fields are not inlined by default. Use inline
to inline a field.
Implementations§
Source§impl EmbedFieldBuilder
impl EmbedFieldBuilder
Sourcepub fn new(name: impl Into<String>, value: impl Into<String>) -> Self
pub fn new(name: impl Into<String>, value: impl Into<String>) -> Self
Create a new embed field builder.
Refer to FIELD_NAME_LENGTH
for the maximum number of UTF-16 code
points that can be in a field name.
Refer to FIELD_VALUE_LENGTH
for the maximum number of UTF-16 code
points that can be in a field value.
Trait Implementations§
Source§impl Clone for EmbedFieldBuilder
impl Clone for EmbedFieldBuilder
Source§fn clone(&self) -> EmbedFieldBuilder
fn clone(&self) -> EmbedFieldBuilder
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 EmbedFieldBuilder
impl Debug for EmbedFieldBuilder
Source§impl From<EmbedFieldBuilder> for EmbedField
impl From<EmbedFieldBuilder> for EmbedField
Source§fn from(builder: EmbedFieldBuilder) -> Self
fn from(builder: EmbedFieldBuilder) -> Self
Convert an embed field builder into an embed field.
This is equivalent to calling EmbedFieldBuilder::build
.
Source§impl PartialEq for EmbedFieldBuilder
impl PartialEq for EmbedFieldBuilder
impl Eq for EmbedFieldBuilder
impl StructuralPartialEq for EmbedFieldBuilder
Auto Trait Implementations§
impl Freeze for EmbedFieldBuilder
impl RefUnwindSafe for EmbedFieldBuilder
impl Send for EmbedFieldBuilder
impl Sync for EmbedFieldBuilder
impl Unpin for EmbedFieldBuilder
impl UnwindSafe for EmbedFieldBuilder
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