pub struct Proof {
pub v: u32,
pub provider: String,
pub subject: String,
pub email: Option<String>,
pub loa: u8,
pub scope: String,
pub verified_at: u64,
pub expires_at: u64,
pub nonce: String,
pub sig: String,
}Expand description
A signed verification proof. Persisted in the proof cache.
Field order is part of the canonicalisation contract – the signature
covers bincode-of(canonical view) which is just a deterministic
JSON serialization minus the sig field itself.
Fields§
§v: u32Schema version. Bump if we change canonicalisation.
provider: String§subject: String§email: Option<String>§loa: u8§scope: String§verified_at: u64§expires_at: u64§nonce: String§sig: Stringed25519:<base64>. Empty during construction, filled by ProofSigner::sign.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Proof
impl<'de> Deserialize<'de> for Proof
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 Proof
impl RefUnwindSafe for Proof
impl Send for Proof
impl Sync for Proof
impl Unpin for Proof
impl UnsafeUnpin for Proof
impl UnwindSafe for Proof
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