pub struct EmbeddedContent {
pub encoding: EmbeddedEncoding,
pub content: Value,
}Expand description
Inline embedded data payload.
Fields§
§encoding: EmbeddedEncodingContent encoding / interpretation.
content: ValueThe actual content. For json encoding this is any JSON value.
For utf8 / base64 it MUST be a JSON string.
Trait Implementations§
Source§impl Clone for EmbeddedContent
impl Clone for EmbeddedContent
Source§fn clone(&self) -> EmbeddedContent
fn clone(&self) -> EmbeddedContent
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 EmbeddedContent
impl Debug for EmbeddedContent
Source§impl<'de> Deserialize<'de> for EmbeddedContent
impl<'de> Deserialize<'de> for EmbeddedContent
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
Auto Trait Implementations§
impl Freeze for EmbeddedContent
impl RefUnwindSafe for EmbeddedContent
impl Send for EmbeddedContent
impl Sync for EmbeddedContent
impl Unpin for EmbeddedContent
impl UnsafeUnpin for EmbeddedContent
impl UnwindSafe for EmbeddedContent
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