#[non_exhaustive]pub enum PolicyValue {
Bool(bool),
Number(i32),
String(BoundedText),
}Expand description
Policy comparison value.
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.
Bool(bool)
Boolean comparison value.
Number(i32)
Integer comparison value.
String(BoundedText)
Bounded string comparison value.
Trait Implementations§
Source§impl Clone for PolicyValue
impl Clone for PolicyValue
Source§fn clone(&self) -> PolicyValue
fn clone(&self) -> PolicyValue
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 PolicyValue
impl Debug for PolicyValue
Source§impl<'de> Deserialize<'de> for PolicyValue
impl<'de> Deserialize<'de> for PolicyValue
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 PartialEq for PolicyValue
impl PartialEq for PolicyValue
Source§fn eq(&self, other: &PolicyValue) -> bool
fn eq(&self, other: &PolicyValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PolicyValue
impl Serialize for PolicyValue
impl Eq for PolicyValue
impl StructuralPartialEq for PolicyValue
Auto Trait Implementations§
impl Freeze for PolicyValue
impl RefUnwindSafe for PolicyValue
impl Send for PolicyValue
impl Sync for PolicyValue
impl Unpin for PolicyValue
impl UnsafeUnpin for PolicyValue
impl UnwindSafe for PolicyValue
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