pub enum AnyProfileKeyCredentialPresentation {
V1(ProfileKeyCredentialPresentationV1),
V2(ProfileKeyCredentialPresentationV2),
V3(ExpiringProfileKeyCredentialPresentation),
}Variants§
V1(ProfileKeyCredentialPresentationV1)
V2(ProfileKeyCredentialPresentationV2)
V3(ExpiringProfileKeyCredentialPresentation)
Implementations§
Source§impl AnyProfileKeyCredentialPresentation
impl AnyProfileKeyCredentialPresentation
pub fn new( presentation_bytes: &[u8], ) -> Result<Self, ZkGroupDeserializationFailure>
pub fn get_uuid_ciphertext(&self) -> UuidCiphertext
pub fn get_profile_key_ciphertext(&self) -> ProfileKeyCiphertext
pub fn to_structurally_valid_v1_presentation_bytes(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl From<ExpiringProfileKeyCredentialPresentation> for AnyProfileKeyCredentialPresentation
impl From<ExpiringProfileKeyCredentialPresentation> for AnyProfileKeyCredentialPresentation
Source§fn from(value: ExpiringProfileKeyCredentialPresentation) -> Self
fn from(value: ExpiringProfileKeyCredentialPresentation) -> Self
Converts to this type from the input type.
Source§impl From<ProfileKeyCredentialPresentationV1> for AnyProfileKeyCredentialPresentation
impl From<ProfileKeyCredentialPresentationV1> for AnyProfileKeyCredentialPresentation
Source§fn from(value: ProfileKeyCredentialPresentationV1) -> Self
fn from(value: ProfileKeyCredentialPresentationV1) -> Self
Converts to this type from the input type.
Source§impl From<ProfileKeyCredentialPresentationV2> for AnyProfileKeyCredentialPresentation
impl From<ProfileKeyCredentialPresentationV2> for AnyProfileKeyCredentialPresentation
Source§fn from(value: ProfileKeyCredentialPresentationV2) -> Self
fn from(value: ProfileKeyCredentialPresentationV2) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AnyProfileKeyCredentialPresentation
impl RefUnwindSafe for AnyProfileKeyCredentialPresentation
impl Send for AnyProfileKeyCredentialPresentation
impl Sync for AnyProfileKeyCredentialPresentation
impl Unpin for AnyProfileKeyCredentialPresentation
impl UnwindSafe for AnyProfileKeyCredentialPresentation
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> 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