#[non_exhaustive]pub enum ReputationEnforcement {
Warn,
Block,
}Expand description
Enforcement posture for ReputationConfig.
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.
Warn
Surface a warning; the install/update proceeds (FR-006, SC-004 default posture).
Block
Refuse the install/update before any file is written or swapped (opt-in, FR-006).
Trait Implementations§
Source§impl Clone for ReputationEnforcement
impl Clone for ReputationEnforcement
Source§fn clone(&self) -> ReputationEnforcement
fn clone(&self) -> ReputationEnforcement
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 ReputationEnforcement
Source§impl Debug for ReputationEnforcement
impl Debug for ReputationEnforcement
Source§impl Default for ReputationEnforcement
impl Default for ReputationEnforcement
Source§fn default() -> ReputationEnforcement
fn default() -> ReputationEnforcement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReputationEnforcement
impl<'de> Deserialize<'de> for ReputationEnforcement
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 ReputationEnforcement
Source§impl PartialEq for ReputationEnforcement
impl PartialEq for ReputationEnforcement
Source§impl Serialize for ReputationEnforcement
impl Serialize for ReputationEnforcement
impl StructuralPartialEq for ReputationEnforcement
Auto Trait Implementations§
impl Freeze for ReputationEnforcement
impl RefUnwindSafe for ReputationEnforcement
impl Send for ReputationEnforcement
impl Sync for ReputationEnforcement
impl Unpin for ReputationEnforcement
impl UnsafeUnpin for ReputationEnforcement
impl UnwindSafe for ReputationEnforcement
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.