#[repr(u8)]pub enum CredentialVersion {
V1 = 1,
}Expand description
Version of the Credential object
Variants§
V1 = 1
Version 1 of the Credential. In addition to the specific attributes,
- Hashing function:
Poseidon2 - Signature scheme:
EdDSAonBabyJubJubCurve - Curve (Base) Field (
Fq):BabyJubJubCurve Field (also the BN254 Scalar Field) - Scalar Field (
Fr):BabyJubJubScalar Field
Trait Implementations§
Source§impl Clone for CredentialVersion
impl Clone for CredentialVersion
Source§fn clone(&self) -> CredentialVersion
fn clone(&self) -> CredentialVersion
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 CredentialVersion
impl Debug for CredentialVersion
Source§impl Default for CredentialVersion
impl Default for CredentialVersion
Source§fn default() -> CredentialVersion
fn default() -> CredentialVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CredentialVersion
impl<'de> Deserialize<'de> for CredentialVersion
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 CredentialVersion
impl Hash for CredentialVersion
Source§impl PartialEq for CredentialVersion
impl PartialEq for CredentialVersion
Source§impl Serialize for CredentialVersion
impl Serialize for CredentialVersion
impl Copy for CredentialVersion
impl Eq for CredentialVersion
impl StructuralPartialEq for CredentialVersion
Auto Trait Implementations§
impl Freeze for CredentialVersion
impl RefUnwindSafe for CredentialVersion
impl Send for CredentialVersion
impl Sync for CredentialVersion
impl Unpin for CredentialVersion
impl UnwindSafe for CredentialVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more