pub struct PassRecord {
pub at: DateTime<Utc>,
pub trigger: Trigger,
pub argv: Vec<String>,
pub version: String,
pub dirs: Vec<PrunedDir>,
}Expand description
One prune pass, in full.
Fields§
§at: DateTime<Utc>When the pass started. Doubles as its identity — see record.
trigger: TriggerWhat started it.
argv: Vec<String>The arguments the pass ran under, argv[1..], unjoined.
Stored as a list and joined only when printed. A repository path with a space in it comes back out of a joined string as two arguments, and the whole point of recording the flags is being able to read back what was really asked for.
version: StringThe version of dev-prune that ran the pass.
dirs: Vec<PrunedDir>Every directory it removed.
Implementations§
Source§impl PassRecord
impl PassRecord
Sourcepub fn bytes_freed(&self) -> u64
pub fn bytes_freed(&self) -> u64
Bytes this pass reclaimed.
Sourcepub fn repos_touched(&self) -> usize
pub fn repos_touched(&self) -> usize
How many distinct repositories it touched.
Sourcepub fn command_line(&self) -> String
pub fn command_line(&self) -> String
The command line as a person would type it, for the report.
Trait Implementations§
Source§impl Clone for PassRecord
impl Clone for PassRecord
Source§fn clone(&self) -> PassRecord
fn clone(&self) -> PassRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PassRecord
impl Debug for PassRecord
Source§impl<'de> Deserialize<'de> for PassRecord
impl<'de> Deserialize<'de> for PassRecord
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 PassRecord
impl RefUnwindSafe for PassRecord
impl Send for PassRecord
impl Sync for PassRecord
impl Unpin for PassRecord
impl UnsafeUnpin for PassRecord
impl UnwindSafe for PassRecord
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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