pub struct StoreRequest<'a> {
pub hashes: &'a Hashes,
pub source: &'a Path,
pub compression: Compression,
pub path: ProjectPath,
pub operation_id: Uuid,
pub message: Option<&'a str>,
pub on_bytes: Option<&'a (dyn Fn(u64) + Send + Sync)>,
}Expand description
Common fields needed for storing a file across backends
Fields§
§hashes: &'a Hashes§source: &'a Path§compression: CompressionThe compression the caller would like. It could be overriden eg in the case of a dvs server backend if the project was init with a different alg
path: ProjectPath§operation_id: Uuid§message: Option<&'a str>§on_bytes: Option<&'a (dyn Fn(u64) + Send + Sync)>Implementations§
Source§impl<'a> StoreRequest<'a>
impl<'a> StoreRequest<'a>
pub fn new_local( hashes: &'a Hashes, source: &'a Path, path: ProjectPath, compression: Compression, ) -> Self
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for StoreRequest<'a>
impl<'a> !UnwindSafe for StoreRequest<'a>
impl<'a> Freeze for StoreRequest<'a>
impl<'a> Send for StoreRequest<'a>
impl<'a> Sync for StoreRequest<'a>
impl<'a> Unpin for StoreRequest<'a>
impl<'a> UnsafeUnpin for StoreRequest<'a>
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