pub struct SignedJson {
pub bytes: Vec<u8>,
pub sig: Vec<u8>,
}Expand description
A signed object as it travels in JSON (specification §3.6): the canonical bytes B and the
composite signature, both base64url. Receivers verify sig over bytes with the context of
the object type they expect before decoding bytes.
Fields§
§bytes: Vec<u8>Canonical encoding B of the object (specification §3.1, §4).
sig: Vec<u8>Encoded Signature (specification §3.4).
Trait Implementations§
Source§impl Clone for SignedJson
impl Clone for SignedJson
Source§fn clone(&self) -> SignedJson
fn clone(&self) -> SignedJson
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SignedJson
impl Debug for SignedJson
Source§impl<'de> Deserialize<'de> for SignedJson
impl<'de> Deserialize<'de> for SignedJson
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
impl Eq for SignedJson
Source§impl<T> From<Signed<T>> for SignedJson
impl<T> From<Signed<T>> for SignedJson
Source§impl PartialEq for SignedJson
impl PartialEq for SignedJson
Source§impl Serialize for SignedJson
impl Serialize for SignedJson
impl StructuralPartialEq for SignedJson
Auto Trait Implementations§
impl Freeze for SignedJson
impl RefUnwindSafe for SignedJson
impl Send for SignedJson
impl Sync for SignedJson
impl Unpin for SignedJson
impl UnsafeUnpin for SignedJson
impl UnwindSafe for SignedJson
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