#[repr(i32)]pub enum State {
Unspecified = 0,
Queued = 1,
Preparing = 2,
Running = 3,
Succeeded = 4,
Failed = 5,
Cancelling = 6,
Cancelled = 7,
Expired = 9,
Initializing = 10,
}Expand description
Enum description of the state of the underlying AIP job.
Variants§
Unspecified = 0
The job state is unspecified.
Queued = 1
The job has been just created and processing has not yet begun.
Preparing = 2
The service is preparing to execution the job.
Running = 3
The job is in progress.
Succeeded = 4
The job completed successfully.
Failed = 5
The job failed.
error_message should contain the details of the failure.
Cancelling = 6
The job is being cancelled.
error_message should describe the reason for the cancellation.
Cancelled = 7
The job has been cancelled.
error_message should describe the reason for the cancellation.
Expired = 9
The job has become expired (relevant to Vertex AI jobs) https://cloud.google.com/vertex-ai/docs/reference/rest/v1/JobState
Initializing = 10
The Execution is being created.
Implementations§
Source§impl State
impl State
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.