aws_sdk_s3/primitives/
sealed_enum_unknown.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// Opaque struct used as inner data for the `Unknown` variant defined in enums in
4/// the crate.
5///
6/// This is not intended to be used directly.
7#[non_exhaustive]
8#[derive(
9    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash,
10)]
11pub struct UnknownVariantValue(pub(crate) ::std::string::String);
12impl UnknownVariantValue {
13    pub(crate) fn as_str(&self) -> &str {
14        &self.0
15    }
16}
17impl ::std::fmt::Display for UnknownVariantValue {
18    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
19        write!(f, "{}", self.0)
20    }
21}