Enum zkgroup::api::profiles::profile_key_credential_presentation::AnyProfileKeyCredentialPresentation
source · 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(presentation: ExpiringProfileKeyCredentialPresentation) -> Self
fn from(presentation: ExpiringProfileKeyCredentialPresentation) -> Self
Converts to this type from the input type.
source§impl From<ProfileKeyCredentialPresentationV1> for AnyProfileKeyCredentialPresentation
impl From<ProfileKeyCredentialPresentationV1> for AnyProfileKeyCredentialPresentation
source§fn from(presentation: ProfileKeyCredentialPresentationV1) -> Self
fn from(presentation: ProfileKeyCredentialPresentationV1) -> Self
Converts to this type from the input type.
source§impl From<ProfileKeyCredentialPresentationV2> for AnyProfileKeyCredentialPresentation
impl From<ProfileKeyCredentialPresentationV2> for AnyProfileKeyCredentialPresentation
source§fn from(presentation: ProfileKeyCredentialPresentationV2) -> Self
fn from(presentation: 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