pub enum ConstraintOperand {
Purpose,
DateTime,
Count,
Custom(String),
}Expand description
Typed ODRL constraint operands supported by TypeSec.
Variants§
Purpose
The request purpose.
DateTime
The request timestamp; accepts dateTime and legacy date in YAML.
Count
A count value supplied in the custom request context.
Custom(String)
An extension operand supplied through custom request context.
Implementations§
Trait Implementations§
Source§impl Clone for ConstraintOperand
impl Clone for ConstraintOperand
Source§fn clone(&self) -> ConstraintOperand
fn clone(&self) -> ConstraintOperand
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 ConstraintOperand
impl Debug for ConstraintOperand
Source§impl<'de> Deserialize<'de> for ConstraintOperand
impl<'de> Deserialize<'de> for ConstraintOperand
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 Display for ConstraintOperand
impl Display for ConstraintOperand
impl Eq for ConstraintOperand
Source§impl PartialEq for ConstraintOperand
impl PartialEq for ConstraintOperand
Source§fn eq(&self, other: &ConstraintOperand) -> bool
fn eq(&self, other: &ConstraintOperand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConstraintOperand
impl Serialize for ConstraintOperand
impl StructuralPartialEq for ConstraintOperand
Auto Trait Implementations§
impl Freeze for ConstraintOperand
impl RefUnwindSafe for ConstraintOperand
impl Send for ConstraintOperand
impl Sync for ConstraintOperand
impl Unpin for ConstraintOperand
impl UnsafeUnpin for ConstraintOperand
impl UnwindSafe for ConstraintOperand
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.