pub struct PolicyPack {
pub spec_version: String,
pub pack_id: String,
pub pack_name: String,
pub issuer: String,
pub issued_at: String,
pub expires_at: String,
pub jurisdictions: Vec<String>,
pub rules: Vec<Rule>,
pub default_decision: String,
pub signature: Signature,
pub extra: Map<String, Value>,
}Fields§
§spec_version: String§pack_id: String§pack_name: String§issuer: String§issued_at: String§expires_at: String§jurisdictions: Vec<String>§rules: Vec<Rule>§default_decision: String§signature: Signature§extra: Map<String, Value>Anything else (e.g. forward-compat fields) is preserved here.
Trait Implementations§
Source§impl Clone for PolicyPack
impl Clone for PolicyPack
Source§fn clone(&self) -> PolicyPack
fn clone(&self) -> PolicyPack
Returns a duplicate of the value. Read more
1.0.0 · 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 PolicyPack
impl Debug for PolicyPack
Source§impl<'de> Deserialize<'de> for PolicyPack
impl<'de> Deserialize<'de> for PolicyPack
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 PolicyPack
impl RefUnwindSafe for PolicyPack
impl Send for PolicyPack
impl Sync for PolicyPack
impl Unpin for PolicyPack
impl UnsafeUnpin for PolicyPack
impl UnwindSafe for PolicyPack
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