pub struct ApprovalDecision {
pub approval_id: String,
pub outcome: ApprovalOutcome,
pub reason: Option<String>,
pub approver: PublicKey,
pub token: GovernedApprovalToken,
pub received_at: u64,
}Expand description
Decision packet delivered by an approver.
Fields§
§approval_id: StringApproval request this decision answers.
outcome: ApprovalOutcomeOutcome (approved / denied).
reason: Option<String>Optional free-form reason supplied by the approver.
approver: PublicKeyPublic key of the approver. Used to validate the token signature and for non-repudiation in the receipt.
token: GovernedApprovalTokenSigned approval token produced by the approver.
received_at: u64Unix seconds when the kernel received this decision.
Trait Implementations§
Source§impl Clone for ApprovalDecision
impl Clone for ApprovalDecision
Source§fn clone(&self) -> ApprovalDecision
fn clone(&self) -> ApprovalDecision
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 ApprovalDecision
impl Debug for ApprovalDecision
Source§impl<'de> Deserialize<'de> for ApprovalDecision
impl<'de> Deserialize<'de> for ApprovalDecision
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 ApprovalDecision
impl RefUnwindSafe for ApprovalDecision
impl Send for ApprovalDecision
impl Sync for ApprovalDecision
impl Unpin for ApprovalDecision
impl UnsafeUnpin for ApprovalDecision
impl UnwindSafe for ApprovalDecision
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