pub struct Loaded<T> {
pub value: T,
pub from_version: u32,
pub migrated: Vec<String>,
}Expand description
A document loaded, and how.
Fields§
§value: T§from_version: u32The version it was written at.
migrated: Vec<String>The migrations applied, as "1 -> 2".
Trait Implementations§
impl<T> StructuralPartialEq for Loaded<T>
Auto Trait Implementations§
impl<T> Freeze for Loaded<T>where
T: Freeze,
impl<T> RefUnwindSafe for Loaded<T>where
T: RefUnwindSafe,
impl<T> Send for Loaded<T>where
T: Send,
impl<T> Sync for Loaded<T>where
T: Sync,
impl<T> Unpin for Loaded<T>where
T: Unpin,
impl<T> UnsafeUnpin for Loaded<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Loaded<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