pub enum VariantBody {
Inline {
content_type: String,
data: String,
},
Media(MediaRef),
}Expand description
A variant’s body: small content inline, larger content by reference
(rev 2.3 — the threshold is automatic at mint, doc 02).
Variants§
Inline
Inline content (≤ crate::INLINE_THRESHOLD_BYTES).
Media(MediaRef)
Bytes by reference with integrity.
Trait Implementations§
Source§impl Clone for VariantBody
impl Clone for VariantBody
Source§fn clone(&self) -> VariantBody
fn clone(&self) -> VariantBody
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 VariantBody
impl Debug for VariantBody
Source§impl<'de> Deserialize<'de> for VariantBody
impl<'de> Deserialize<'de> for VariantBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VariantBody
Source§impl PartialEq for VariantBody
impl PartialEq for VariantBody
Source§impl Serialize for VariantBody
impl Serialize for VariantBody
impl StructuralPartialEq for VariantBody
Auto Trait Implementations§
impl Freeze for VariantBody
impl RefUnwindSafe for VariantBody
impl Send for VariantBody
impl Sync for VariantBody
impl Unpin for VariantBody
impl UnsafeUnpin for VariantBody
impl UnwindSafe for VariantBody
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