#[non_exhaustive]pub struct FileOutcome {
pub path: PathBuf,
pub relative_path: String,
pub size: u64,
pub checksum: Option<Checksum>,
pub checksum_verified: bool,
}Expand description
One file written by a backend.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: PathBufPath of the file on disk, under the task destination.
relative_path: StringRelative to the task destination, using /.
size: u64Size of the written file in bytes.
checksum: Option<Checksum>Checksum the engine should verify this file against when the task has no checksum of its own.
checksum_verified: boolSet when the backend itself proved integrity, so the engine’s verify finalizer can skip re-hashing.
Implementations§
Trait Implementations§
Source§impl Clone for FileOutcome
impl Clone for FileOutcome
Auto Trait Implementations§
impl Forget for FileOutcome
impl Freeze for FileOutcome
impl Move for FileOutcome
impl RefUnwindSafe for FileOutcome
impl Send for FileOutcome
impl Sync for FileOutcome
impl Unpin for FileOutcome
impl UnsafeUnpin for FileOutcome
impl UnwindSafe for FileOutcome
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