pub struct OdrlPolicy {
pub uid: String,
pub policy_type: String,
pub rules: Vec<OdrlRule>,
}Expand description
An ODRL Policy.
A policy bundles related rules under a unique identifier.
Fields§
§uid: StringUnique identifier (e.g., "policy:ai-agent-001").
policy_type: StringPolicy type — Set, Offer, or Agreement.
rules: Vec<OdrlRule>The rules in this policy.
Trait Implementations§
Source§impl Clone for OdrlPolicy
impl Clone for OdrlPolicy
Source§fn clone(&self) -> OdrlPolicy
fn clone(&self) -> OdrlPolicy
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 OdrlPolicy
impl Debug for OdrlPolicy
Source§impl<'de> Deserialize<'de> for OdrlPolicy
impl<'de> Deserialize<'de> for OdrlPolicy
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 OdrlPolicy
impl RefUnwindSafe for OdrlPolicy
impl Send for OdrlPolicy
impl Sync for OdrlPolicy
impl Unpin for OdrlPolicy
impl UnsafeUnpin for OdrlPolicy
impl UnwindSafe for OdrlPolicy
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