pub enum SafePolicyValue {
Bool(bool),
Integer(i64),
Code(SafeCode),
String(SafePolicyString),
Digest(Sha256Digest),
List(Vec<SafePolicyValue>),
Map(BTreeMap<String, SafePolicyValue>),
}Expand description
Strict JSON-safe metadata for normalized managed model overrides.
Variants§
Bool(bool)
Integer(i64)
Code(SafeCode)
String(SafePolicyString)
Digest(Sha256Digest)
List(Vec<SafePolicyValue>)
Map(BTreeMap<String, SafePolicyValue>)
Trait Implementations§
Source§impl Clone for SafePolicyValue
impl Clone for SafePolicyValue
Source§fn clone(&self) -> SafePolicyValue
fn clone(&self) -> SafePolicyValue
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 SafePolicyValue
impl Debug for SafePolicyValue
Source§impl<'de> Deserialize<'de> for SafePolicyValue
impl<'de> Deserialize<'de> for SafePolicyValue
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 SafePolicyValue
Source§impl PartialEq for SafePolicyValue
impl PartialEq for SafePolicyValue
Source§fn eq(&self, other: &SafePolicyValue) -> bool
fn eq(&self, other: &SafePolicyValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SafePolicyValue
impl Serialize for SafePolicyValue
impl StructuralPartialEq for SafePolicyValue
Auto Trait Implementations§
impl Freeze for SafePolicyValue
impl RefUnwindSafe for SafePolicyValue
impl Send for SafePolicyValue
impl Sync for SafePolicyValue
impl Unpin for SafePolicyValue
impl UnsafeUnpin for SafePolicyValue
impl UnwindSafe for SafePolicyValue
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