pub struct Embedded<T> { /* private fields */ }Expand description
An embedded document, checked by its own bounded parser. Serialization preserves its original bytes, including evidence number representations.
Implementations§
Trait Implementations§
Source§impl<'de, T: Document> Deserialize<'de> for Embedded<T>
impl<'de, T: Document> Deserialize<'de> for Embedded<T>
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: Document> JsonSchema for Embedded<T>
An embedded document is described by name, not inlined: its own schema
file describes it, and its own bounded parser checks it. A schema is never
stricter than the parser (spec 027 3.2.2), so the looser object is exact
enough, and it keeps each envelope from copying the run record, judgment
and bundle schemas into every service document.
impl<T: Document> JsonSchema for Embedded<T>
An embedded document is described by name, not inlined: its own schema file describes it, and its own bounded parser checks it. A schema is never stricter than the parser (spec 027 3.2.2), so the looser object is exact enough, and it keeps each envelope from copying the run record, judgment and bundle schemas into every service document.
Source§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl<T> Freeze for Embedded<T>where
PhantomData<T>: Freeze,
impl<T> RefUnwindSafe for Embedded<T>where
PhantomData<T>: RefUnwindSafe,
impl<T> Send for Embedded<T>where
PhantomData<T>: Send,
impl<T> Sync for Embedded<T>where
PhantomData<T>: Sync,
impl<T> Unpin for Embedded<T>where
PhantomData<T>: Unpin,
impl<T> UnsafeUnpin for Embedded<T>where
PhantomData<T>: UnsafeUnpin,
impl<T> UnwindSafe for Embedded<T>where
PhantomData<T>: UnwindSafe,
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