pub struct GetRow {Show 13 fields
pub path: PathBuf,
pub local_path: PathBuf,
pub before: Before,
pub action: Action,
pub satisfied: bool,
pub size: Option<u64>,
pub target_hash: Option<String>,
pub local_hash: Option<String>,
pub stored_copy: Option<StoredCopy>,
pub code: Option<GetCode>,
pub message: Option<String>,
pub hint: Option<String>,
pub duration_ms: Option<u64>,
}Expand description
One requested file. Every field is always present (null when not applicable) so JSON and R consumers get a fixed schema.
Fields§
§path: PathBufRelative to the project root
local_path: PathBufRelative to the current directory
before: Before§action: Action§satisfied: boolThe file is (or after a dry run would be) at its target
size: Option<u64>Size of the target in bytes
target_hash: Option<String>§local_hash: Option<String>§stored_copy: Option<StoredCopy>Only for conflicts
code: Option<GetCode>§message: Option<String>§hint: Option<String>The next step, in CLI syntax
duration_ms: Option<u64>Time spent on this file (hash + transfer + install); None for rows
never hashed or transferred (cancelled before the plan included).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GetRow
impl RefUnwindSafe for GetRow
impl Send for GetRow
impl Sync for GetRow
impl Unpin for GetRow
impl UnsafeUnpin for GetRow
impl UnwindSafe for GetRow
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<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