pub struct PolicySpec {
pub revision: u64,
pub previous_hash: [u8; 32],
pub authorization_epoch: u64,
pub issued_at: u64,
pub not_before: u64,
pub not_after: u64,
pub rules: Vec<CapabilityRule>,
}Expand description
Inputs signed into one tenant policy.
Fields§
§revision: u64Monotonic subject-policy revision.
previous_hash: [u8; 32]Hash of the preceding policy, or zero for revision one.
Current authorization epoch.
issued_at: u64Issuance time in Unix seconds.
not_before: u64First valid Unix second.
not_after: u64Last valid Unix second.
rules: Vec<CapabilityRule>Exact capability rules.
Trait Implementations§
Source§impl Clone for PolicySpec
impl Clone for PolicySpec
Source§fn clone(&self) -> PolicySpec
fn clone(&self) -> PolicySpec
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 PolicySpec
impl Debug for PolicySpec
impl Eq for PolicySpec
Source§impl PartialEq for PolicySpec
impl PartialEq for PolicySpec
impl StructuralPartialEq for PolicySpec
Auto Trait Implementations§
impl Freeze for PolicySpec
impl RefUnwindSafe for PolicySpec
impl Send for PolicySpec
impl Sync for PolicySpec
impl Unpin for PolicySpec
impl UnsafeUnpin for PolicySpec
impl UnwindSafe for PolicySpec
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