pub struct Decision {
pub valid: bool,
pub reason: Option<String>,
pub passport: Option<Value>,
pub replay: Option<ReplayIdentity>,
pub issuer_key: Option<Vec<u8>>,
}Expand description
The verdict.
Fields§
§valid: bool§reason: Option<String>None when valid, else the reference’s refusal text.
passport: Option<Value>The verified passport (only when valid), in the JSON shape
passport gives.
replay: Option<ReplayIdentity>The replay identity (only when valid).
issuer_key: Option<Vec<u8>>The Ed25519 key the credential verified under (only when valid), so a host can check what the issuer’s key also signs (a session voucher it must not have issued to itself, an equivocation proof).
Trait Implementations§
impl StructuralPartialEq for Decision
Auto Trait Implementations§
impl Forget for Decision
impl Freeze for Decisionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
impl Move for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decisionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
impl UnwindSafe for Decision
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