Enum google_api_proto::google::cloud::clouddms::v1::migration_job::State
source · #[repr(i32)]pub enum State {
Show 16 variants
Unspecified = 0,
Maintenance = 1,
Draft = 2,
Creating = 3,
NotStarted = 4,
Running = 5,
Failed = 6,
Completed = 7,
Deleting = 8,
Stopping = 9,
Stopped = 10,
Deleted = 11,
Updating = 12,
Starting = 13,
Restarting = 14,
Resuming = 15,
}
Expand description
The current migration job states.
Variants§
Unspecified = 0
The state of the migration job is unknown.
Maintenance = 1
The migration job is down for maintenance.
Draft = 2
The migration job is in draft mode and no resources are created.
Creating = 3
The migration job is being created.
NotStarted = 4
The migration job is created and not started.
Running = 5
The migration job is running.
Failed = 6
The migration job failed.
Completed = 7
The migration job has been completed.
Deleting = 8
The migration job is being deleted.
Stopping = 9
The migration job is being stopped.
Stopped = 10
The migration job is currently stopped.
Deleted = 11
The migration job has been deleted.
Updating = 12
The migration job is being updated.
Starting = 13
The migration job is starting.
Restarting = 14
The migration job is restarting.
Resuming = 15
The migration job is resuming.
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.
Trait Implementations§
source§impl Ord for State
impl Ord for State
source§impl PartialEq for State
impl PartialEq for State
source§impl PartialOrd for State
impl PartialOrd for State
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for State
impl TryFrom<i32> for State
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request