pub struct StructuredDocument {
pub value: Value,
pub format: String,
pub source: Value,
}Expand description
Generic format-neutral value tree. Codec type for structured_document_v1.
All source formats transcode their content into a single serde_json::Value
tree; format records the origin (“json”, “yaml”, “toml”, …) and source
is an open bag of serialization facts (key order, indentation, BOM, trailing
newline) that consumers ignore when unknown.
Fields§
§value: Value§format: String§source: ValueTrait Implementations§
Source§impl Clone for StructuredDocument
impl Clone for StructuredDocument
Source§fn clone(&self) -> StructuredDocument
fn clone(&self) -> StructuredDocument
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 StructuredDocument
impl Debug for StructuredDocument
Source§impl<'de> Deserialize<'de> for StructuredDocument
impl<'de> Deserialize<'de> for StructuredDocument
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
Source§impl PartialEq for StructuredDocument
impl PartialEq for StructuredDocument
Source§fn eq(&self, other: &StructuredDocument) -> bool
fn eq(&self, other: &StructuredDocument) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StructuredDocument
impl Serialize for StructuredDocument
impl StructuralPartialEq for StructuredDocument
Auto Trait Implementations§
impl Freeze for StructuredDocument
impl RefUnwindSafe for StructuredDocument
impl Send for StructuredDocument
impl Sync for StructuredDocument
impl Unpin for StructuredDocument
impl UnsafeUnpin for StructuredDocument
impl UnwindSafe for StructuredDocument
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