pub struct ApiKeyEndpoint<'a> {
pub request: Option<&'a AuthRequest>,
pub path: Option<&'a str>,
pub body: &'a Value,
pub auth_config: &'a AuthConfig,
pub extensions: &'a RuntimeExtensions,
pub metadata: &'a MetadataMap,
pub api_keys: &'a dyn ApiKeyStore,
pub organizations: &'a dyn OrganizationStore,
pub members: &'a dyn MemberStore,
}Expand description
Endpoint data available to application API key callbacks.
Fields§
§request: Option<&'a AuthRequest>HTTP request, absent for a requestless server API call.
path: Option<&'a str>Endpoint path; absent in the server-only verification hook matcher.
body: &'a ValueParsed endpoint input, including route defaults.
auth_config: &'a AuthConfigGlobal authentication configuration.
extensions: &'a RuntimeExtensionsApplication runtime state registered with the authentication instance.
metadata: &'a MetadataMapMetadata registered by enabled plugins.
api_keys: &'a dyn ApiKeyStoreDatabase API key adapter, independent of the selected key storage mode.
organizations: &'a dyn OrganizationStoreOrganization adapter for organization-owned credentials.
members: &'a dyn MemberStoreOrganization memberships available to application permission policies.
Trait Implementations§
Source§impl<'a> Clone for ApiKeyEndpoint<'a>
impl<'a> Clone for ApiKeyEndpoint<'a>
impl<'a> Copy for ApiKeyEndpoint<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ApiKeyEndpoint<'a>
impl<'a> !UnwindSafe for ApiKeyEndpoint<'a>
impl<'a> Freeze for ApiKeyEndpoint<'a>
impl<'a> Send for ApiKeyEndpoint<'a>
impl<'a> Sync for ApiKeyEndpoint<'a>
impl<'a> Unpin for ApiKeyEndpoint<'a>
impl<'a> UnsafeUnpin for ApiKeyEndpoint<'a>
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