Struct aws_sdk_ec2::types::ValidationError
source · #[non_exhaustive]pub struct ValidationError {
pub code: Option<String>,
pub message: Option<String>,
}
Expand description
The error code and error message that is returned for a parameter or parameter combination that is not valid when a new launch template or new version of a launch template is created.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.code: Option<String>
The error code that indicates why the parameter or parameter combination is not valid. For more information about error codes, see Error codes.
message: Option<String>
The error message that describes why the parameter or parameter combination is not valid. For more information about error messages, see Error codes.
Implementations§
source§impl ValidationError
impl ValidationError
sourcepub fn code(&self) -> Option<&str>
pub fn code(&self) -> Option<&str>
The error code that indicates why the parameter or parameter combination is not valid. For more information about error codes, see Error codes.
sourcepub fn message(&self) -> Option<&str>
pub fn message(&self) -> Option<&str>
The error message that describes why the parameter or parameter combination is not valid. For more information about error messages, see Error codes.
source§impl ValidationError
impl ValidationError
sourcepub fn builder() -> ValidationErrorBuilder
pub fn builder() -> ValidationErrorBuilder
Creates a new builder-style object to manufacture ValidationError
.
Trait Implementations§
source§impl Clone for ValidationError
impl Clone for ValidationError
source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ValidationError
impl Debug for ValidationError
source§impl PartialEq<ValidationError> for ValidationError
impl PartialEq<ValidationError> for ValidationError
source§fn eq(&self, other: &ValidationError) -> bool
fn eq(&self, other: &ValidationError) -> bool
self
and other
values to be equal, and is used
by ==
.