pub struct ApprovalTokenV2 {Show 14 fields
pub v: u8,
pub kind: String,
pub node_id: String,
pub target: String,
pub sha256: String,
pub approval_id: String,
pub operation_id: String,
pub credential_generation: Option<u64>,
pub policy_rev: u64,
pub rule_id: Option<String>,
pub approved_by: String,
pub approved_at: String,
pub expires_secs: i64,
pub nonce: String,
}Expand description
Version 2: adds the approval’s kind and ties it to one operation and the policy it was made
under. Signed as unv-approval-v2\n<json>; version 1 tokens still verify.
Fields§
§v: u8§kind: Stringhuman, device or rule.
node_id: String§target: String§sha256: String§approval_id: String§operation_id: StringThe operation this approval belongs to; an approval for one deployment is not valid for another.
credential_generation: Option<u64>The credential generation the rendered file was made from, when known.
policy_rev: u64The revision of the policy under which the approval was given.
rule_id: Option<String>For rule: the rule that allowed it.
approved_by: String§approved_at: String§expires_secs: i64§nonce: StringTrait Implementations§
Source§impl Clone for ApprovalTokenV2
impl Clone for ApprovalTokenV2
Source§impl Debug for ApprovalTokenV2
impl Debug for ApprovalTokenV2
Source§impl<'de> Deserialize<'de> for ApprovalTokenV2
impl<'de> Deserialize<'de> for ApprovalTokenV2
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 PartialEq for ApprovalTokenV2
impl PartialEq for ApprovalTokenV2
Source§impl Serialize for ApprovalTokenV2
impl Serialize for ApprovalTokenV2
impl StructuralPartialEq for ApprovalTokenV2
Auto Trait Implementations§
impl Freeze for ApprovalTokenV2
impl RefUnwindSafe for ApprovalTokenV2
impl Send for ApprovalTokenV2
impl Sync for ApprovalTokenV2
impl Unpin for ApprovalTokenV2
impl UnsafeUnpin for ApprovalTokenV2
impl UnwindSafe for ApprovalTokenV2
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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