Struct sparkle_cache::model::CachedEmbedField
source · 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: boolname: Stringvalue: StringImplementations
sourceimpl 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
sourceimpl Clone for CachedEmbedField
impl Clone for CachedEmbedField
sourcefn clone(&self) -> CachedEmbedField
fn clone(&self) -> CachedEmbedField
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl RefUnwindSafe for CachedEmbedField
impl Send for CachedEmbedField
impl Sync for CachedEmbedField
impl Unpin for CachedEmbedField
impl UnwindSafe for CachedEmbedField
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more