pub enum OdrlRuleType {
Permission,
Prohibition,
Duty,
}Expand description
The type of an ODRL rule.
Variants§
Permission
Grants the assignee the action on the target (if constraints hold).
Prohibition
Denies the assignee the action on the target (if constraints hold).
Duty
Obligates the assignee to perform the action.
Trait Implementations§
Source§impl Clone for OdrlRuleType
impl Clone for OdrlRuleType
Source§fn clone(&self) -> OdrlRuleType
fn clone(&self) -> OdrlRuleType
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 OdrlRuleType
impl Debug for OdrlRuleType
Source§impl<'de> Deserialize<'de> for OdrlRuleType
impl<'de> Deserialize<'de> for OdrlRuleType
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 OdrlRuleType
Source§impl PartialEq for OdrlRuleType
impl PartialEq for OdrlRuleType
Source§fn eq(&self, other: &OdrlRuleType) -> bool
fn eq(&self, other: &OdrlRuleType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OdrlRuleType
impl Serialize for OdrlRuleType
impl StructuralPartialEq for OdrlRuleType
Auto Trait Implementations§
impl Freeze for OdrlRuleType
impl RefUnwindSafe for OdrlRuleType
impl Send for OdrlRuleType
impl Sync for OdrlRuleType
impl Unpin for OdrlRuleType
impl UnsafeUnpin for OdrlRuleType
impl UnwindSafe for OdrlRuleType
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.