pub struct PolicyVerdict {
pub version: i32,
pub verdict_id: String,
pub agent_id: String,
pub scope: String,
pub allow: bool,
pub context_hash: Vec<u8>,
pub issued_at: i64,
pub valid_until: i64,
pub mac: Vec<u8>,
}Expand description
HMAC-bound cached policy decision (SPEC §17.6). The policy equivalent
of SessionToken: issued once by a commercial policy backend, accepted
locally by the verifier for the rest of valid_until without re-calling
the backend.
Fields§
§version: i32§verdict_id: String§agent_id: String§scope: String§allow: bool§context_hash: Vec<u8>§issued_at: i64§valid_until: i64§mac: Vec<u8>Trait Implementations§
Source§impl Clone for PolicyVerdict
impl Clone for PolicyVerdict
Source§fn clone(&self) -> PolicyVerdict
fn clone(&self) -> PolicyVerdict
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 PolicyVerdict
impl Debug for PolicyVerdict
Source§impl<'de> Deserialize<'de> for PolicyVerdict
impl<'de> Deserialize<'de> for PolicyVerdict
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 PolicyVerdict
impl RefUnwindSafe for PolicyVerdict
impl Send for PolicyVerdict
impl Sync for PolicyVerdict
impl Unpin for PolicyVerdict
impl UnsafeUnpin for PolicyVerdict
impl UnwindSafe for PolicyVerdict
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