#[non_exhaustive]pub struct Signature {
pub body: String,
pub sig: String,
pub kid: String,
pub verified: bool,
}Expand description
What proves who sent a signed message: keep all three.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.body: StringThe exact text that was signed: a JSON object.
sig: StringThe ECDSA P-256 signature, r || s in base64.
kid: StringThe signing key’s id: 8 bytes of SHA-256 of its public key, in hex.
verified: boolChecked against a pinned server signing key; false when none is pinned.
Trait Implementations§
impl Eq for Signature
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Forget for Signature
impl Freeze for Signature
impl Move for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnsafeUnpin for Signature
impl UnwindSafe for Signature
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