Enum aws_sdk_deadline::types::JobEntity
source · #[non_exhaustive]pub enum JobEntity {
EnvironmentDetails(EnvironmentDetailsEntity),
JobAttachmentDetails(JobAttachmentDetailsEntity),
JobDetails(JobDetailsEntity),
StepDetails(StepDetailsEntity),
Unknown,
}Expand description
The details of a job entity.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EnvironmentDetails(EnvironmentDetailsEntity)
The environment details for the job entity.
JobAttachmentDetails(JobAttachmentDetailsEntity)
The job attachment details.
JobDetails(JobDetailsEntity)
The job details.
StepDetails(StepDetailsEntity)
The step details.
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 JobEntity
impl JobEntity
sourcepub fn as_environment_details(&self) -> Result<&EnvironmentDetailsEntity, &Self>
pub fn as_environment_details(&self) -> Result<&EnvironmentDetailsEntity, &Self>
Tries to convert the enum instance into EnvironmentDetails, extracting the inner EnvironmentDetailsEntity.
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<&JobAttachmentDetailsEntity, &Self>
pub fn as_job_attachment_details( &self ) -> Result<&JobAttachmentDetailsEntity, &Self>
Tries to convert the enum instance into JobAttachmentDetails, extracting the inner JobAttachmentDetailsEntity.
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<&JobDetailsEntity, &Self>
pub fn as_job_details(&self) -> Result<&JobDetailsEntity, &Self>
Tries to convert the enum instance into JobDetails, extracting the inner JobDetailsEntity.
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<&StepDetailsEntity, &Self>
pub fn as_step_details(&self) -> Result<&StepDetailsEntity, &Self>
Tries to convert the enum instance into StepDetails, extracting the inner StepDetailsEntity.
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.