pub struct OdrlRule {
pub rule_type: OdrlRuleType,
pub assigner: Option<String>,
pub assignee: String,
pub action: RuleAction,
pub target: String,
pub constraints: Vec<OdrlConstraint>,
}Expand description
An ODRL Rule (permission, prohibition, or duty).
Fields§
§rule_type: OdrlRuleTypeRule type: "permission", "prohibition", or "duty".
assigner: Option<String>The party granting permission (optional for prohibitions).
assignee: StringThe party the rule applies to.
action: RuleActionThe action this rule covers.
target: StringThe asset this rule applies to.
constraints: Vec<OdrlConstraint>Constraints that must hold for the rule to apply.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OdrlRule
impl<'de> Deserialize<'de> for OdrlRule
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
Auto Trait Implementations§
impl Freeze for OdrlRule
impl RefUnwindSafe for OdrlRule
impl Send for OdrlRule
impl Sync for OdrlRule
impl Unpin for OdrlRule
impl UnsafeUnpin for OdrlRule
impl UnwindSafe for OdrlRule
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