pub struct PolicyVersion {
pub hash: String,
pub loaded_at: String,
pub label_set: Option<String>,
pub generation: u64,
}Expand description
Identifies the policy and label state used for authorization.
Every authorization response includes a PolicyVersion so callers can verify
which policy snapshot was used for evaluation.
Displays as "{hash} (loaded {loaded_at})".
Fields§
§hash: StringSHA-256 hash of the policy source content.
loaded_at: StringISO 8601 timestamp of when these policies were loaded.
label_set: Option<String>Stable label configuration identifier, when supplied by the server. Required on the wire; explicit null means no configured label identifier.
generation: u64Generation within one engine instance; this can restart on replacement. Required on the wire; no old-server default is inferred.
Trait Implementations§
Source§impl Clone for PolicyVersion
impl Clone for PolicyVersion
Source§fn clone(&self) -> PolicyVersion
fn clone(&self) -> PolicyVersion
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 PolicyVersion
impl Debug for PolicyVersion
Source§impl<'de> Deserialize<'de> for PolicyVersion
impl<'de> Deserialize<'de> for PolicyVersion
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
Source§impl Display for PolicyVersion
impl Display for PolicyVersion
impl Eq for PolicyVersion
Source§impl Hash for PolicyVersion
impl Hash for PolicyVersion
Source§impl PartialEq for PolicyVersion
impl PartialEq for PolicyVersion
Source§impl Serialize for PolicyVersion
impl Serialize for PolicyVersion
impl StructuralPartialEq for PolicyVersion
Auto Trait Implementations§
impl Freeze for PolicyVersion
impl RefUnwindSafe for PolicyVersion
impl Send for PolicyVersion
impl Sync for PolicyVersion
impl Unpin for PolicyVersion
impl UnsafeUnpin for PolicyVersion
impl UnwindSafe for PolicyVersion
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