aws_sdk_datasync/primitives/
sealed_enum_unknown.rs1#[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}