pub struct Contents {
pub dir: String,
pub entries: Vec<EntrySummary>,
pub bytes: u64,
}Expand description
What a project’s store holds.
Fields§
§dir: StringThe store’s directory, said even when it holds nothing — “empty” and “not where you thought” are different answers and a reader cannot tell them apart without it.
entries: Vec<EntrySummary>One per entry file. Empty when the directory is missing or unreadable, which are not distinguished: neither is a store this run can use.
bytes: u64The whole store’s bytes, summed over entries.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Contents
impl RefUnwindSafe for Contents
impl Send for Contents
impl Sync for Contents
impl Unpin for Contents
impl UnsafeUnpin for Contents
impl UnwindSafe for Contents
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> 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