#[non_exhaustive]pub enum CompilationState {
Unspecified,
Succeeded,
Failed,
UnknownValue(UnknownValue),
}Expand description
The current compilation state of the rule.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unspecified
The compilation state is unspecified/unknown.
Succeeded
The Rule can successfully compile.
Failed
The Rule cannot successfully compile. This is possible if a backwards-incompatible change was made to the compiler.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using CompilationState::value or CompilationState::name.
Implementations§
Trait Implementations§
Source§impl Clone for CompilationState
impl Clone for CompilationState
Source§fn clone(&self) -> CompilationState
fn clone(&self) -> CompilationState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompilationState
impl Debug for CompilationState
Source§impl Default for CompilationState
impl Default for CompilationState
Source§impl<'de> Deserialize<'de> for CompilationState
impl<'de> Deserialize<'de> for CompilationState
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CompilationState
impl Display for CompilationState
Source§impl From<&str> for CompilationState
impl From<&str> for CompilationState
Source§impl From<i32> for CompilationState
impl From<i32> for CompilationState
Source§impl PartialEq for CompilationState
impl PartialEq for CompilationState
Source§fn eq(&self, other: &CompilationState) -> bool
fn eq(&self, other: &CompilationState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CompilationState
impl Serialize for CompilationState
impl StructuralPartialEq for CompilationState
Auto Trait Implementations§
impl Freeze for CompilationState
impl RefUnwindSafe for CompilationState
impl Send for CompilationState
impl Sync for CompilationState
impl Unpin for CompilationState
impl UnsafeUnpin for CompilationState
impl UnwindSafe for CompilationState
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
Mutably borrows from an owned value. Read more