pub struct S3Attributes {
pub listing_uri: S3Uri,
pub object_uri: S3Uri,
pub hash: Multihash<256>,
pub size: u64,
}
Expand description
We use it for getting hashes in files listings when we create new packages from S3 directory. Also, we re-use this struct for calculating hashes locally when S3-checksums are disabled.
Fields§
§listing_uri: S3Uri
§object_uri: S3Uri
§hash: Multihash<256>
§size: u64
Trait Implementations§
Source§impl Debug for S3Attributes
impl Debug for S3Attributes
Source§impl From<S3Attributes> for Row
impl From<S3Attributes> for Row
Source§fn from(attrs: S3Attributes) -> Row
fn from(attrs: S3Attributes) -> Row
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for S3Attributes
impl RefUnwindSafe for S3Attributes
impl Send for S3Attributes
impl Sync for S3Attributes
impl Unpin for S3Attributes
impl UnwindSafe for S3Attributes
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.