pub enum OBResponse<S: Service> {
Result(Authenticated<OBResult<S::Output>>, Option<Session>, Option<ConnectionData>),
Dialog(Dialog<S>),
Redirect(Redirect<S>),
RedirectHandle(RedirectHandle<S>),
}Expand description
Response from YAXI Open Banking services.
The response either carries an authenticated result or an interrupt (i.e. a dialog or redirect for the user).
Variants§
Result(Authenticated<OBResult<S::Output>>, Option<Session>, Option<ConnectionData>)
Dialog(Dialog<S>)
Redirect(Redirect<S>)
RedirectHandle(RedirectHandle<S>)
Trait Implementations§
Source§impl<S: Service> Clone for OBResponse<S>
impl<S: Service> Clone for OBResponse<S>
Source§impl<'de, S> Deserialize<'de> for OBResponse<S>where
S: Service,
impl<'de, S> Deserialize<'de> for OBResponse<S>where
S: Service,
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<S> !Freeze for OBResponse<S>
impl<S> RefUnwindSafe for OBResponse<S>where
Authenticated<OBResult<<S as Service>::Output>>: RefUnwindSafe,
Dialog<ConfirmationContext<S>, InputContext<S>>: RefUnwindSafe,
Redirect<S>: RefUnwindSafe,
RedirectHandle<S>: RefUnwindSafe,
impl<S> Send for OBResponse<S>where
Authenticated<OBResult<<S as Service>::Output>>: Send,
Dialog<ConfirmationContext<S>, InputContext<S>>: Send,
Redirect<S>: Send,
RedirectHandle<S>: Send,
impl<S> Sync for OBResponse<S>where
Authenticated<OBResult<<S as Service>::Output>>: Sync,
Dialog<ConfirmationContext<S>, InputContext<S>>: Sync,
Redirect<S>: Sync,
RedirectHandle<S>: Sync,
impl<S> Unpin for OBResponse<S>where
Authenticated<OBResult<<S as Service>::Output>>: Unpin,
Dialog<ConfirmationContext<S>, InputContext<S>>: Unpin,
Redirect<S>: Unpin,
RedirectHandle<S>: Unpin,
impl<S> UnsafeUnpin for OBResponse<S>where
Authenticated<OBResult<<S as Service>::Output>>: UnsafeUnpin,
Dialog<ConfirmationContext<S>, InputContext<S>>: UnsafeUnpin,
Redirect<S>: UnsafeUnpin,
RedirectHandle<S>: UnsafeUnpin,
impl<S> UnwindSafe for OBResponse<S>where
Authenticated<OBResult<<S as Service>::Output>>: UnwindSafe,
Dialog<ConfirmationContext<S>, InputContext<S>>: UnwindSafe,
Redirect<S>: UnwindSafe,
RedirectHandle<S>: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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