pub enum ChecksumValue {
Sha1Hex(String),
DropboxContentHash(String),
QuickXorBase64(String),
Sha256Base64(String),
Crc64NvmeBase64(String),
Crc32cBase64(String),
Crc32Base64(String),
Sha1Base64(String),
}Expand description
The algorithm and native encoding of a provider checksum.
Variants§
Sha1Hex(String)
Hexadecimal SHA-1 of the complete content (OneDrive).
DropboxContentHash(String)
Dropbox’s hexadecimal SHA-256 of concatenated 4 MiB block hashes.
QuickXorBase64(String)
Base64 QuickXorHash (OneDrive), a provider checksum, not authentication.
Sha256Base64(String)
Base64 SHA-256 (S3); its scope determines whether it hashes parts or content.
Crc64NvmeBase64(String)
Base64 CRC64NVME (S3).
Crc32cBase64(String)
Base64 CRC32C (S3).
Crc32Base64(String)
Base64 CRC32 (S3).
Sha1Base64(String)
Base64 SHA-1 (S3).
Trait Implementations§
Source§impl Clone for ChecksumValue
impl Clone for ChecksumValue
Source§fn clone(&self) -> ChecksumValue
fn clone(&self) -> ChecksumValue
Returns a duplicate of the value. Read more
1.0.0 · 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 ChecksumValue
impl Debug for ChecksumValue
Source§impl<'de> Deserialize<'de> for ChecksumValue
impl<'de> Deserialize<'de> for ChecksumValue
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChecksumValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChecksumValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChecksumValue
impl PartialEq for ChecksumValue
Source§impl Serialize for ChecksumValue
impl Serialize for ChecksumValue
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ChecksumValue
impl StructuralPartialEq for ChecksumValue
Auto Trait Implementations§
impl Freeze for ChecksumValue
impl RefUnwindSafe for ChecksumValue
impl Send for ChecksumValue
impl Sync for ChecksumValue
impl Unpin for ChecksumValue
impl UnsafeUnpin for ChecksumValue
impl UnwindSafe for ChecksumValue
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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.