pub struct ProtocolV1;Expand description
Protocol version marker used by the MVP credential format.
Version 1 implies the v1 canonicalization and blind-signature suite choices;
those are not repeated as per-credential suite/alg fields.
Serializes as the JSON number 1. Deserialization rejects all other version
numbers.
Trait Implementations§
Source§impl Clone for ProtocolV1
impl Clone for ProtocolV1
Source§fn clone(&self) -> ProtocolV1
fn clone(&self) -> ProtocolV1
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 ProtocolV1
impl Debug for ProtocolV1
Source§impl Default for ProtocolV1
impl Default for ProtocolV1
Source§fn default() -> ProtocolV1
fn default() -> ProtocolV1
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProtocolV1
impl<'de> Deserialize<'de> for ProtocolV1
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
Source§impl Hash for ProtocolV1
impl Hash for ProtocolV1
Source§impl Ord for ProtocolV1
impl Ord for ProtocolV1
Source§fn cmp(&self, other: &ProtocolV1) -> Ordering
fn cmp(&self, other: &ProtocolV1) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProtocolV1
impl PartialEq for ProtocolV1
Source§impl PartialOrd for ProtocolV1
impl PartialOrd for ProtocolV1
Source§impl Serialize for ProtocolV1
impl Serialize for ProtocolV1
impl Copy for ProtocolV1
impl Eq for ProtocolV1
impl StructuralPartialEq for ProtocolV1
Auto Trait Implementations§
impl Freeze for ProtocolV1
impl RefUnwindSafe for ProtocolV1
impl Send for ProtocolV1
impl Sync for ProtocolV1
impl Unpin for ProtocolV1
impl UnsafeUnpin for ProtocolV1
impl UnwindSafe for ProtocolV1
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