pub struct CachedEmbedField {
pub embed_id: Id<GenericMarker>,
pub inline: bool,
pub name: String,
pub value: String,
}Expand description
A cached embed field
It’s the same as twilight_model::channel::embed::EmbedField except:
embed_idfield is added, making it possible to return an embed’s fields
Fields§
§embed_id: Id<GenericMarker>§inline: bool§name: String§value: StringImplementations§
Source§impl CachedEmbedField
impl CachedEmbedField
Sourcepub fn from_embed_field(
embed_field: EmbedField,
embed_id: Id<GenericMarker>,
) -> Self
pub fn from_embed_field( embed_field: EmbedField, embed_id: Id<GenericMarker>, ) -> Self
Create a cached embed field from a given embed field and embed ID
Trait Implementations§
Source§impl Clone for CachedEmbedField
impl Clone for CachedEmbedField
Source§fn clone(&self) -> CachedEmbedField
fn clone(&self) -> CachedEmbedField
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CachedEmbedField
impl RefUnwindSafe for CachedEmbedField
impl Send for CachedEmbedField
impl Sync for CachedEmbedField
impl Unpin for CachedEmbedField
impl UnwindSafe for CachedEmbedField
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