#[non_exhaustive]pub enum ChecksumType {
Composite,
FullObject,
Unknown(UnknownVariantValue),
}Expand description
When matching ChecksumType, handle known variants and retain a wildcard
arm for values introduced by S3 after this crate was generated.
To recognize a value that is not yet a named variant, use as_str():
match value {
// Handle known variants here.
other if other.as_str() == "NewFeature" => { /* ... */ },
_ => { /* ... */ },
}This continues to recognize "NewFeature" if a future version of this crate
adds a named variant for it. Avoid matching Unknown directly: its inner
value is opaque, and that arm would no longer match the new named variant.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Composite
FullObject
Unknown(UnknownVariantValue)
👎Deprecated:
Don’t directly match on Unknown. See the docs on this enum for the correct way to handle unknown variants.
Unknown contains new variants that have been added since this code was generated.
Implementations§
Source§impl ChecksumType
impl ChecksumType
Source§impl ChecksumType
impl ChecksumType
Sourcepub fn try_parse(value: &str) -> Result<Self, UnknownVariantError>
pub fn try_parse(value: &str) -> Result<Self, UnknownVariantError>
Parses the enum value while disallowing unknown variants.
Unknown variants will result in an error.
Trait Implementations§
Source§impl AsRef<str> for ChecksumType
impl AsRef<str> for ChecksumType
Source§impl Clone for ChecksumType
impl Clone for ChecksumType
Source§impl Debug for ChecksumType
impl Debug for ChecksumType
Source§impl Display for ChecksumType
impl Display for ChecksumType
impl Eq for ChecksumType
Source§impl From<&ChecksumType> for ChecksumType
Available on crate feature sdk-v1 only.
impl From<&ChecksumType> for ChecksumType
Available on crate feature
sdk-v1 only.Source§fn from(value: &ChecksumType) -> Self
fn from(value: &ChecksumType) -> Self
Converts to this type from the input type.
Source§impl From<&ChecksumType> for ChecksumType
Available on crate feature sdk-v1 only.
impl From<&ChecksumType> for ChecksumType
Available on crate feature
sdk-v1 only.Source§fn from(value: &ChecksumType) -> Self
fn from(value: &ChecksumType) -> Self
Converts to this type from the input type.
Source§impl From<&str> for ChecksumType
impl From<&str> for ChecksumType
Source§impl From<ChecksumType> for ChecksumType
Available on crate feature sdk-v1 only.
impl From<ChecksumType> for ChecksumType
Available on crate feature
sdk-v1 only.Source§fn from(value: ChecksumType) -> Self
fn from(value: ChecksumType) -> Self
Converts to this type from the input type.
Source§impl From<ChecksumType> for ChecksumType
Available on crate feature sdk-v1 only.
impl From<ChecksumType> for ChecksumType
Available on crate feature
sdk-v1 only.Source§fn from(value: ChecksumType) -> Self
fn from(value: ChecksumType) -> Self
Converts to this type from the input type.
Source§impl FromStr for ChecksumType
impl FromStr for ChecksumType
Source§impl Hash for ChecksumType
impl Hash for ChecksumType
Source§impl Ord for ChecksumType
impl Ord for ChecksumType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ChecksumType
impl PartialEq for ChecksumType
Source§impl PartialOrd for ChecksumType
impl PartialOrd for ChecksumType
impl StructuralPartialEq for ChecksumType
Auto Trait Implementations§
impl Forget for ChecksumType
impl Freeze for ChecksumType
impl Move for ChecksumType
impl RefUnwindSafe for ChecksumType
impl Send for ChecksumType
impl Sync for ChecksumType
impl Unpin for ChecksumType
impl UnsafeUnpin for ChecksumType
impl UnwindSafe for ChecksumType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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.