pub enum RuntimePostureSource {
Unset,
Inherited,
Confirmed,
}Expand description
Where the current runtime posture came from. Mirrors the rule that a constitution may recommend posture but only an explicit config action (#3406) applies it.
Variants§
Unset
Not yet reviewed.
Inherited
Carried over from existing config without an explicit confirmation.
Confirmed
The user explicitly reviewed and confirmed the posture in setup.
Implementations§
Source§impl RuntimePostureSource
impl RuntimePostureSource
Sourcepub fn is_reviewed(self) -> bool
pub fn is_reviewed(self) -> bool
True when posture has been inherited or confirmed (either satisfies first-run readiness).
Trait Implementations§
Source§impl Clone for RuntimePostureSource
impl Clone for RuntimePostureSource
Source§fn clone(&self) -> RuntimePostureSource
fn clone(&self) -> RuntimePostureSource
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 moreimpl Copy for RuntimePostureSource
Source§impl Debug for RuntimePostureSource
impl Debug for RuntimePostureSource
Source§impl Default for RuntimePostureSource
impl Default for RuntimePostureSource
Source§fn default() -> RuntimePostureSource
fn default() -> RuntimePostureSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuntimePostureSource
impl<'de> Deserialize<'de> for RuntimePostureSource
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 RuntimePostureSource
Source§impl PartialEq for RuntimePostureSource
impl PartialEq for RuntimePostureSource
Source§impl Serialize for RuntimePostureSource
impl Serialize for RuntimePostureSource
impl StructuralPartialEq for RuntimePostureSource
Auto Trait Implementations§
impl Freeze for RuntimePostureSource
impl RefUnwindSafe for RuntimePostureSource
impl Send for RuntimePostureSource
impl Sync for RuntimePostureSource
impl Unpin for RuntimePostureSource
impl UnsafeUnpin for RuntimePostureSource
impl UnwindSafe for RuntimePostureSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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
Compare self to
key and return true if they are equal.