pub struct EmbeddedContent {
pub encoding: EmbeddedEncoding,
pub content: Value,
pub content_hash: Option<ContentHash>,
}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.
content_hash: Option<ContentHash>Optional SHA-256 hash of the decoded content bytes (RFC-ACDP-0002
§6.3/§6.6), distinct from DataRef.content_hash on the enclosing
ref — a DataRef MAY carry both over the same decoded bytes.
Trait Implementations§
Source§impl Clone for EmbeddedContent
impl Clone for EmbeddedContent
Source§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