pub struct SnapshotSummary {
pub packages: usize,
pub versions: usize,
pub functions: usize,
pub bytes: u64,
pub ecosystems: Vec<String>,
pub meta: BTreeMap<String, String>,
}Expand description
What Database::snapshot wrote.
Fields§
§packages: usizePackages in the snapshot.
versions: usizePackage versions in the snapshot.
functions: usizeFunctions in the snapshot.
bytes: u64Size of the snapshot file in bytes.
ecosystems: Vec<String>Ecosystems in the snapshot, by name.
meta: BTreeMap<String, String>The meta of the snapshot: versions, feature parameters, fingerprint
levels and the time it was made (see Database::meta).
Trait Implementations§
Source§impl Clone for SnapshotSummary
impl Clone for SnapshotSummary
Source§impl Debug for SnapshotSummary
impl Debug for SnapshotSummary
Source§impl Default for SnapshotSummary
impl Default for SnapshotSummary
impl Eq for SnapshotSummary
Source§impl PartialEq for SnapshotSummary
impl PartialEq for SnapshotSummary
Source§impl Serialize for SnapshotSummary
impl Serialize for SnapshotSummary
impl StructuralPartialEq for SnapshotSummary
Auto Trait Implementations§
impl Freeze for SnapshotSummary
impl RefUnwindSafe for SnapshotSummary
impl Send for SnapshotSummary
impl Sync for SnapshotSummary
impl Unpin for SnapshotSummary
impl UnsafeUnpin for SnapshotSummary
impl UnwindSafe for SnapshotSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more