pub struct Value<'a> {
pub type_: Option<Cow<'a, str>>,
pub id: Option<Cow<'a, str>>,
}Expand description
Representation of values used in Oso Cloud
All values are represented as a type and an id, both of which are strings
Fields§
§type_: Option<Cow<'a, str>>§id: Option<Cow<'a, str>>Implementations§
Trait Implementations§
source§impl<'de, 'a> Deserialize<'de> for Value<'a>
impl<'de, 'a> Deserialize<'de> for Value<'a>
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<'a> Ord for Value<'a>
impl<'a> Ord for Value<'a>
source§impl<'a> PartialEq<Value<'a>> for Value<'a>
impl<'a> PartialEq<Value<'a>> for Value<'a>
source§impl<'a> PartialOrd<Value<'a>> for Value<'a>
impl<'a> PartialOrd<Value<'a>> for Value<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<'a> Eq for Value<'a>
impl<'a> StructuralEq for Value<'a>
impl<'a> StructuralPartialEq for Value<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Value<'a>
impl<'a> Send for Value<'a>
impl<'a> Sync for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> UnwindSafe for Value<'a>
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.