pub enum CardResp {
Success {
attr: Signed<Attr>,
issuance_request: JWT,
yivi_requestor_url: Url,
},
PleaseRetryWithNewCardPseud,
}Expand description
What’s returned by CardEP
Variants§
Success
Fields
§
attr: Signed<Attr>Attribute for the card that can be added to the user’s account via the
phc::user::EnterEP endpoint.
Make sure that you first add this attribute to the user’s account before you add the card to the user’s yivi app - we do not want to end up with a card in the yivi app that is not connected to the user’s account.
§
issuance_request: JWTSigned issuance request to issue the pubhubs card. Can be used to start a new session
with the Yivi server directly, or an already existing chained session with the
authentication server, via YiviReleaseNextSessionEP.
Before making the issuance request, make sure CardResp::Success::attr is added to the
user’s account!
PleaseRetryWithNewCardPseud
Please try again with a new signed card pseudonym package
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CardResp
impl<'de> Deserialize<'de> for CardResp
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
Auto Trait Implementations§
impl Freeze for CardResp
impl RefUnwindSafe for CardResp
impl Send for CardResp
impl Sync for CardResp
impl Unpin for CardResp
impl UnsafeUnpin for CardResp
impl UnwindSafe for CardResp
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<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