#[non_exhaustive]pub enum AssignedSessionActionDefinition {
EnvEnter(AssignedEnvironmentEnterSessionActionDefinition),
EnvExit(AssignedEnvironmentExitSessionActionDefinition),
SyncInputJobAttachments(AssignedSyncInputJobAttachmentsSessionActionDefinition),
TaskRun(AssignedTaskRunSessionActionDefinition),
Unknown,
}Expand description
The definition of the assigned session action.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EnvEnter(AssignedEnvironmentEnterSessionActionDefinition)
The environment a session starts on.
EnvExit(AssignedEnvironmentExitSessionActionDefinition)
The environment a session exits from.
SyncInputJobAttachments(AssignedSyncInputJobAttachmentsSessionActionDefinition)
The job attachment to sync with an assigned session action.
TaskRun(AssignedTaskRunSessionActionDefinition)
The task run.
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 AssignedSessionActionDefinition
impl AssignedSessionActionDefinition
sourcepub fn as_env_enter(
&self
) -> Result<&AssignedEnvironmentEnterSessionActionDefinition, &Self>
pub fn as_env_enter( &self ) -> Result<&AssignedEnvironmentEnterSessionActionDefinition, &Self>
Tries to convert the enum instance into EnvEnter, extracting the inner AssignedEnvironmentEnterSessionActionDefinition.
Returns Err(&Self) if it can’t be converted.
sourcepub fn is_env_enter(&self) -> bool
pub fn is_env_enter(&self) -> bool
Returns true if this is a EnvEnter.
sourcepub fn as_env_exit(
&self
) -> Result<&AssignedEnvironmentExitSessionActionDefinition, &Self>
pub fn as_env_exit( &self ) -> Result<&AssignedEnvironmentExitSessionActionDefinition, &Self>
Tries to convert the enum instance into EnvExit, extracting the inner AssignedEnvironmentExitSessionActionDefinition.
Returns Err(&Self) if it can’t be converted.
sourcepub fn is_env_exit(&self) -> bool
pub fn is_env_exit(&self) -> bool
Returns true if this is a EnvExit.
sourcepub fn as_sync_input_job_attachments(
&self
) -> Result<&AssignedSyncInputJobAttachmentsSessionActionDefinition, &Self>
pub fn as_sync_input_job_attachments( &self ) -> Result<&AssignedSyncInputJobAttachmentsSessionActionDefinition, &Self>
Tries to convert the enum instance into SyncInputJobAttachments, extracting the inner AssignedSyncInputJobAttachmentsSessionActionDefinition.
Returns Err(&Self) if it can’t be converted.
sourcepub fn is_sync_input_job_attachments(&self) -> bool
pub fn is_sync_input_job_attachments(&self) -> bool
Returns true if this is a SyncInputJobAttachments.
sourcepub fn as_task_run(
&self
) -> Result<&AssignedTaskRunSessionActionDefinition, &Self>
pub fn as_task_run( &self ) -> Result<&AssignedTaskRunSessionActionDefinition, &Self>
Tries to convert the enum instance into TaskRun, extracting the inner AssignedTaskRunSessionActionDefinition.
Returns Err(&Self) if it can’t be converted.
sourcepub fn is_task_run(&self) -> bool
pub fn is_task_run(&self) -> bool
Returns true if this is a TaskRun.
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 AssignedSessionActionDefinition
impl Clone for AssignedSessionActionDefinition
source§fn clone(&self) -> AssignedSessionActionDefinition
fn clone(&self) -> AssignedSessionActionDefinition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for AssignedSessionActionDefinition
impl PartialEq for AssignedSessionActionDefinition
source§fn eq(&self, other: &AssignedSessionActionDefinition) -> bool
fn eq(&self, other: &AssignedSessionActionDefinition) -> bool
self and other values to be equal, and is used
by ==.