pub struct Document<T> {
pub header: Header,
pub document: T,
}
Expand description
Structure that represents a document within its content and header
Fields§
§header: Header
§document: T
Implementations§
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for Document<T>where
T: DeserializeOwned,
impl<'de, T> Deserialize<'de> for Document<T>where
T: DeserializeOwned,
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<T> Freeze for Document<T>where
T: Freeze,
impl<T> RefUnwindSafe for Document<T>where
T: RefUnwindSafe,
impl<T> Send for Document<T>where
T: Send,
impl<T> Sync for Document<T>where
T: Sync,
impl<T> Unpin for Document<T>where
T: Unpin,
impl<T> UnwindSafe for Document<T>where
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