pub enum ModelPolicyState {
Enabled,
Disabled,
Unconfigured,
Unknown,
}Expand description
Current policy state for this model
Variants§
Enabled
The model is enabled by policy.
Disabled
The model is disabled by policy.
Unconfigured
No explicit policy is configured for the model.
Unknown
Unknown variant for forward compatibility.
Trait Implementations§
Source§impl Clone for ModelPolicyState
impl Clone for ModelPolicyState
Source§fn clone(&self) -> ModelPolicyState
fn clone(&self) -> ModelPolicyState
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 ModelPolicyState
impl Debug for ModelPolicyState
Source§impl Default for ModelPolicyState
impl Default for ModelPolicyState
Source§fn default() -> ModelPolicyState
fn default() -> ModelPolicyState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelPolicyState
impl<'de> Deserialize<'de> for ModelPolicyState
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
impl Eq for ModelPolicyState
Source§impl PartialEq for ModelPolicyState
impl PartialEq for ModelPolicyState
Source§fn eq(&self, other: &ModelPolicyState) -> bool
fn eq(&self, other: &ModelPolicyState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelPolicyState
impl Serialize for ModelPolicyState
impl StructuralPartialEq for ModelPolicyState
Auto Trait Implementations§
impl Freeze for ModelPolicyState
impl RefUnwindSafe for ModelPolicyState
impl Send for ModelPolicyState
impl Sync for ModelPolicyState
impl Unpin for ModelPolicyState
impl UnsafeUnpin for ModelPolicyState
impl UnwindSafe for ModelPolicyState
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