pub struct YiviReleaseNextSessionReq {
pub state: AuthState,
pub next_session: Option<JWT>,
pub stale_after: Option<u16>,
}Expand description
Request type for YiviReleaseNextSessionEP
Fields§
§state: AuthStateThe AuthStartResp::Success::state returned earlier
next_session: Option<JWT>Instructs the authentication server on what next session (if any) to start at the yivi server.
If None the yivi server will be served a HTTP 204 causing it to stop the yivi flow
normally without opening a follow-up session.
Otherwise it must be some signed session request that will be passed to yivi server.
This session request must be signed by the authentication server’s yivi requestor credentials,
for example, CardResp::Success::issuance_request.
The value None is not permitted when AuthStartReq::yivi_chained_session_drip
was set (because in that case the HTTP status code 200 has already been sent to the Yivi server.)
If None is submitted anyway, this causes an ErrorCode::BadRequest.
stale_after: Option<u16>If the yivi server has been waiting more than this amount of milliseconds when it is about to be released, dont release it, but ghost it. The reason is that drip mechanism may be too slow to detect the yivi server timing out.
Trait Implementations§
Source§impl Clone for YiviReleaseNextSessionReq
impl Clone for YiviReleaseNextSessionReq
Source§fn clone(&self) -> YiviReleaseNextSessionReq
fn clone(&self) -> YiviReleaseNextSessionReq
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for YiviReleaseNextSessionReq
impl Debug for YiviReleaseNextSessionReq
Source§impl<'de> Deserialize<'de> for YiviReleaseNextSessionReq
impl<'de> Deserialize<'de> for YiviReleaseNextSessionReq
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>,
Auto Trait Implementations§
impl Freeze for YiviReleaseNextSessionReq
impl RefUnwindSafe for YiviReleaseNextSessionReq
impl Send for YiviReleaseNextSessionReq
impl Sync for YiviReleaseNextSessionReq
impl Unpin for YiviReleaseNextSessionReq
impl UnsafeUnpin for YiviReleaseNextSessionReq
impl UnwindSafe for YiviReleaseNextSessionReq
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
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>
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>
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