pub struct CallbackContext {
pub request: Option<AuthRequest>,
pub request_hook: Option<RequestHookContext>,
pub endpoint: Option<EndpointCall>,
/* private fields */
}Expand description
Owned native context for application callbacks, including background delivery. The schema accessor exposes the live instance and its hook-aware store; the request and hook data retain the actual transport and admitted endpoint input.
Fields§
§request: Option<AuthRequest>§request_hook: Option<RequestHookContext>§endpoint: Option<EndpointCall>Implementations§
Source§impl CallbackContext
impl CallbackContext
pub fn new<S: AuthSchema>( context: &AuthContext<S>, request: Option<&AuthRequest>, ) -> Self
Sourcepub fn context<S: AuthSchema>(&self) -> Option<&AuthContext<S>>
pub fn context<S: AuthSchema>(&self) -> Option<&AuthContext<S>>
Access the actual initialized instance using the application’s schema.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CallbackContext
impl !UnwindSafe for CallbackContext
impl Freeze for CallbackContext
impl Send for CallbackContext
impl Sync for CallbackContext
impl Unpin for CallbackContext
impl UnsafeUnpin for CallbackContext
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