Enum aws_sdk_deadline::types::GetJobEntityError
source · #[non_exhaustive]pub enum GetJobEntityError {
EnvironmentDetails(EnvironmentDetailsError),
JobAttachmentDetails(JobAttachmentDetailsError),
JobDetails(JobDetailsError),
StepDetails(StepDetailsError),
Unknown,
}Expand description
The error for the job entity.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EnvironmentDetails(EnvironmentDetailsError)
The environment details for the failed job entity.
JobAttachmentDetails(JobAttachmentDetailsError)
The job attachment details for the failed job entity.
JobDetails(JobDetailsError)
The job details for the failed job entity.
StepDetails(StepDetailsError)
The step details for the failed job entity.
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 GetJobEntityError
impl GetJobEntityError
sourcepub fn as_environment_details(&self) -> Result<&EnvironmentDetailsError, &Self>
pub fn as_environment_details(&self) -> Result<&EnvironmentDetailsError, &Self>
Tries to convert the enum instance into EnvironmentDetails, extracting the inner EnvironmentDetailsError.
Returns Err(&Self) if it can’t be converted.
sourcepub fn is_environment_details(&self) -> bool
pub fn is_environment_details(&self) -> bool
Returns true if this is a EnvironmentDetails.
sourcepub fn as_job_attachment_details(
&self
) -> Result<&JobAttachmentDetailsError, &Self>
pub fn as_job_attachment_details( &self ) -> Result<&JobAttachmentDetailsError, &Self>
Tries to convert the enum instance into JobAttachmentDetails, extracting the inner JobAttachmentDetailsError.
Returns Err(&Self) if it can’t be converted.
sourcepub fn is_job_attachment_details(&self) -> bool
pub fn is_job_attachment_details(&self) -> bool
Returns true if this is a JobAttachmentDetails.
sourcepub fn as_job_details(&self) -> Result<&JobDetailsError, &Self>
pub fn as_job_details(&self) -> Result<&JobDetailsError, &Self>
Tries to convert the enum instance into JobDetails, extracting the inner JobDetailsError.
Returns Err(&Self) if it can’t be converted.
sourcepub fn is_job_details(&self) -> bool
pub fn is_job_details(&self) -> bool
Returns true if this is a JobDetails.
sourcepub fn as_step_details(&self) -> Result<&StepDetailsError, &Self>
pub fn as_step_details(&self) -> Result<&StepDetailsError, &Self>
Tries to convert the enum instance into StepDetails, extracting the inner StepDetailsError.
Returns Err(&Self) if it can’t be converted.
sourcepub fn is_step_details(&self) -> bool
pub fn is_step_details(&self) -> bool
Returns true if this is a StepDetails.
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 GetJobEntityError
impl Clone for GetJobEntityError
source§fn clone(&self) -> GetJobEntityError
fn clone(&self) -> GetJobEntityError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetJobEntityError
impl Debug for GetJobEntityError
source§impl PartialEq for GetJobEntityError
impl PartialEq for GetJobEntityError
source§fn eq(&self, other: &GetJobEntityError) -> bool
fn eq(&self, other: &GetJobEntityError) -> bool
self and other values to be equal, and is used
by ==.