Enum aws_sdk_appmesh::model::LoggingFormat
source · #[non_exhaustive]
pub enum LoggingFormat {
Json(Vec<JsonFormatRef>),
Text(String),
Unknown,
}
Expand description
An object that represents the format for the logs.
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.
Json(Vec<JsonFormatRef>)
Text(String)
Unknown
The Unknown
variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
An unknown enum variant
Note: If you encounter this error, consider upgrading your SDK to the latest version.
The Unknown
variant represents cases where the server sent a value that wasn’t recognized
by the client. This can happen when the server adds new functionality, but the client has not been updated.
To investigate this, consider turning on debug logging to print the raw HTTP response.
Implementations§
source§impl LoggingFormat
impl LoggingFormat
sourcepub fn as_json(&self) -> Result<&Vec<JsonFormatRef>, &Self>
pub fn as_json(&self) -> Result<&Vec<JsonFormatRef>, &Self>
sourcepub fn as_text(&self) -> Result<&String, &Self>
pub fn as_text(&self) -> Result<&String, &Self>
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown
variant.
Trait Implementations§
source§impl Clone for LoggingFormat
impl Clone for LoggingFormat
source§fn clone(&self) -> LoggingFormat
fn clone(&self) -> LoggingFormat
Returns a copy 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 more