1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
23/// 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 {
13pub(crate) fn as_str(&self) -> &str {
14&self.0
15}
16}
17impl ::std::fmt::Display for UnknownVariantValue {
18fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
19write!(f, "{}", self.0)
20 }
21}