pub enum VersionedDocument {
V0(Document),
V1(Document),
}
Variants§
Implementations§
Source§impl VersionedDocument
impl VersionedDocument
pub fn to_current(self) -> Document
Trait Implementations§
Source§impl Debug for VersionedDocument
impl Debug for VersionedDocument
Source§impl<'de> Deserialize<'de> for VersionedDocument
impl<'de> Deserialize<'de> for VersionedDocument
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 VersionedDocument
impl RefUnwindSafe for VersionedDocument
impl Send for VersionedDocument
impl Sync for VersionedDocument
impl Unpin for VersionedDocument
impl UnwindSafe for VersionedDocument
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