pub struct ApiKeyPluginBuilder<S = Empty>where
S: State,{ /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S> ApiKeyPluginBuilder<S>where
S: State,
impl<S> ApiKeyPluginBuilder<S>where
S: State,
Sourcepub fn build(self) -> ApiKeyPluginwhere
S: IsComplete,
pub fn build(self) -> ApiKeyPluginwhere
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn key_length(self, value: usize) -> ApiKeyPluginBuilder<SetKeyLength<S>>where
<S as State>::KeyLength: IsUnset,
pub fn key_length(self, value: usize) -> ApiKeyPluginBuilder<SetKeyLength<S>>where
<S as State>::KeyLength: IsUnset,
Sourcepub fn maybe_key_length(
self,
value: Option<usize>,
) -> ApiKeyPluginBuilder<SetKeyLength<S>>where
<S as State>::KeyLength: IsUnset,
pub fn maybe_key_length(
self,
value: Option<usize>,
) -> ApiKeyPluginBuilder<SetKeyLength<S>>where
<S as State>::KeyLength: IsUnset,
Sourcepub fn prefix(self, value: String) -> ApiKeyPluginBuilder<SetPrefix<S>>where
<S as State>::Prefix: IsUnset,
pub fn prefix(self, value: String) -> ApiKeyPluginBuilder<SetPrefix<S>>where
<S as State>::Prefix: IsUnset,
Sourcepub fn maybe_prefix(
self,
value: Option<String>,
) -> ApiKeyPluginBuilder<SetPrefix<S>>where
<S as State>::Prefix: IsUnset,
pub fn maybe_prefix(
self,
value: Option<String>,
) -> ApiKeyPluginBuilder<SetPrefix<S>>where
<S as State>::Prefix: IsUnset,
Sourcepub fn default_remaining(
self,
value: i64,
) -> ApiKeyPluginBuilder<SetDefaultRemaining<S>>where
<S as State>::DefaultRemaining: IsUnset,
pub fn default_remaining(
self,
value: i64,
) -> ApiKeyPluginBuilder<SetDefaultRemaining<S>>where
<S as State>::DefaultRemaining: IsUnset,
Sourcepub fn maybe_default_remaining(
self,
value: Option<i64>,
) -> ApiKeyPluginBuilder<SetDefaultRemaining<S>>where
<S as State>::DefaultRemaining: IsUnset,
pub fn maybe_default_remaining(
self,
value: Option<i64>,
) -> ApiKeyPluginBuilder<SetDefaultRemaining<S>>where
<S as State>::DefaultRemaining: IsUnset,
Sourcepub fn api_key_header(
self,
value: String,
) -> ApiKeyPluginBuilder<SetApiKeyHeader<S>>where
<S as State>::ApiKeyHeader: IsUnset,
pub fn api_key_header(
self,
value: String,
) -> ApiKeyPluginBuilder<SetApiKeyHeader<S>>where
<S as State>::ApiKeyHeader: IsUnset,
Sourcepub fn maybe_api_key_header(
self,
value: Option<String>,
) -> ApiKeyPluginBuilder<SetApiKeyHeader<S>>where
<S as State>::ApiKeyHeader: IsUnset,
pub fn maybe_api_key_header(
self,
value: Option<String>,
) -> ApiKeyPluginBuilder<SetApiKeyHeader<S>>where
<S as State>::ApiKeyHeader: IsUnset,
Sourcepub fn disable_key_hashing(
self,
value: bool,
) -> ApiKeyPluginBuilder<SetDisableKeyHashing<S>>where
<S as State>::DisableKeyHashing: IsUnset,
pub fn disable_key_hashing(
self,
value: bool,
) -> ApiKeyPluginBuilder<SetDisableKeyHashing<S>>where
<S as State>::DisableKeyHashing: IsUnset,
Sourcepub fn maybe_disable_key_hashing(
self,
value: Option<bool>,
) -> ApiKeyPluginBuilder<SetDisableKeyHashing<S>>where
<S as State>::DisableKeyHashing: IsUnset,
pub fn maybe_disable_key_hashing(
self,
value: Option<bool>,
) -> ApiKeyPluginBuilder<SetDisableKeyHashing<S>>where
<S as State>::DisableKeyHashing: IsUnset,
Sourcepub fn starting_characters_length(
self,
value: usize,
) -> ApiKeyPluginBuilder<SetStartingCharactersLength<S>>where
<S as State>::StartingCharactersLength: IsUnset,
pub fn starting_characters_length(
self,
value: usize,
) -> ApiKeyPluginBuilder<SetStartingCharactersLength<S>>where
<S as State>::StartingCharactersLength: IsUnset,
Sourcepub fn maybe_starting_characters_length(
self,
value: Option<usize>,
) -> ApiKeyPluginBuilder<SetStartingCharactersLength<S>>where
<S as State>::StartingCharactersLength: IsUnset,
pub fn maybe_starting_characters_length(
self,
value: Option<usize>,
) -> ApiKeyPluginBuilder<SetStartingCharactersLength<S>>where
<S as State>::StartingCharactersLength: IsUnset,
Sourcepub fn store_starting_characters(
self,
value: bool,
) -> ApiKeyPluginBuilder<SetStoreStartingCharacters<S>>where
<S as State>::StoreStartingCharacters: IsUnset,
pub fn store_starting_characters(
self,
value: bool,
) -> ApiKeyPluginBuilder<SetStoreStartingCharacters<S>>where
<S as State>::StoreStartingCharacters: IsUnset,
Sourcepub fn maybe_store_starting_characters(
self,
value: Option<bool>,
) -> ApiKeyPluginBuilder<SetStoreStartingCharacters<S>>where
<S as State>::StoreStartingCharacters: IsUnset,
pub fn maybe_store_starting_characters(
self,
value: Option<bool>,
) -> ApiKeyPluginBuilder<SetStoreStartingCharacters<S>>where
<S as State>::StoreStartingCharacters: IsUnset,
Sourcepub fn max_prefix_length(
self,
value: usize,
) -> ApiKeyPluginBuilder<SetMaxPrefixLength<S>>where
<S as State>::MaxPrefixLength: IsUnset,
pub fn max_prefix_length(
self,
value: usize,
) -> ApiKeyPluginBuilder<SetMaxPrefixLength<S>>where
<S as State>::MaxPrefixLength: IsUnset,
Sourcepub fn maybe_max_prefix_length(
self,
value: Option<usize>,
) -> ApiKeyPluginBuilder<SetMaxPrefixLength<S>>where
<S as State>::MaxPrefixLength: IsUnset,
pub fn maybe_max_prefix_length(
self,
value: Option<usize>,
) -> ApiKeyPluginBuilder<SetMaxPrefixLength<S>>where
<S as State>::MaxPrefixLength: IsUnset,
Sourcepub fn min_prefix_length(
self,
value: usize,
) -> ApiKeyPluginBuilder<SetMinPrefixLength<S>>where
<S as State>::MinPrefixLength: IsUnset,
pub fn min_prefix_length(
self,
value: usize,
) -> ApiKeyPluginBuilder<SetMinPrefixLength<S>>where
<S as State>::MinPrefixLength: IsUnset,
Sourcepub fn maybe_min_prefix_length(
self,
value: Option<usize>,
) -> ApiKeyPluginBuilder<SetMinPrefixLength<S>>where
<S as State>::MinPrefixLength: IsUnset,
pub fn maybe_min_prefix_length(
self,
value: Option<usize>,
) -> ApiKeyPluginBuilder<SetMinPrefixLength<S>>where
<S as State>::MinPrefixLength: IsUnset,
Sourcepub fn max_name_length(
self,
value: usize,
) -> ApiKeyPluginBuilder<SetMaxNameLength<S>>where
<S as State>::MaxNameLength: IsUnset,
pub fn max_name_length(
self,
value: usize,
) -> ApiKeyPluginBuilder<SetMaxNameLength<S>>where
<S as State>::MaxNameLength: IsUnset,
Sourcepub fn maybe_max_name_length(
self,
value: Option<usize>,
) -> ApiKeyPluginBuilder<SetMaxNameLength<S>>where
<S as State>::MaxNameLength: IsUnset,
pub fn maybe_max_name_length(
self,
value: Option<usize>,
) -> ApiKeyPluginBuilder<SetMaxNameLength<S>>where
<S as State>::MaxNameLength: IsUnset,
Sourcepub fn min_name_length(
self,
value: usize,
) -> ApiKeyPluginBuilder<SetMinNameLength<S>>where
<S as State>::MinNameLength: IsUnset,
pub fn min_name_length(
self,
value: usize,
) -> ApiKeyPluginBuilder<SetMinNameLength<S>>where
<S as State>::MinNameLength: IsUnset,
Sourcepub fn maybe_min_name_length(
self,
value: Option<usize>,
) -> ApiKeyPluginBuilder<SetMinNameLength<S>>where
<S as State>::MinNameLength: IsUnset,
pub fn maybe_min_name_length(
self,
value: Option<usize>,
) -> ApiKeyPluginBuilder<SetMinNameLength<S>>where
<S as State>::MinNameLength: IsUnset,
Sourcepub fn require_name(self, value: bool) -> ApiKeyPluginBuilder<SetRequireName<S>>where
<S as State>::RequireName: IsUnset,
pub fn require_name(self, value: bool) -> ApiKeyPluginBuilder<SetRequireName<S>>where
<S as State>::RequireName: IsUnset,
Sourcepub fn maybe_require_name(
self,
value: Option<bool>,
) -> ApiKeyPluginBuilder<SetRequireName<S>>where
<S as State>::RequireName: IsUnset,
pub fn maybe_require_name(
self,
value: Option<bool>,
) -> ApiKeyPluginBuilder<SetRequireName<S>>where
<S as State>::RequireName: IsUnset,
Sourcepub fn enable_metadata(
self,
value: bool,
) -> ApiKeyPluginBuilder<SetEnableMetadata<S>>where
<S as State>::EnableMetadata: IsUnset,
pub fn enable_metadata(
self,
value: bool,
) -> ApiKeyPluginBuilder<SetEnableMetadata<S>>where
<S as State>::EnableMetadata: IsUnset,
Sourcepub fn maybe_enable_metadata(
self,
value: Option<bool>,
) -> ApiKeyPluginBuilder<SetEnableMetadata<S>>where
<S as State>::EnableMetadata: IsUnset,
pub fn maybe_enable_metadata(
self,
value: Option<bool>,
) -> ApiKeyPluginBuilder<SetEnableMetadata<S>>where
<S as State>::EnableMetadata: IsUnset,
Sourcepub fn key_expiration(
self,
value: KeyExpirationConfig,
) -> ApiKeyPluginBuilder<SetKeyExpiration<S>>where
<S as State>::KeyExpiration: IsUnset,
pub fn key_expiration(
self,
value: KeyExpirationConfig,
) -> ApiKeyPluginBuilder<SetKeyExpiration<S>>where
<S as State>::KeyExpiration: IsUnset,
Sourcepub fn maybe_key_expiration(
self,
value: Option<KeyExpirationConfig>,
) -> ApiKeyPluginBuilder<SetKeyExpiration<S>>where
<S as State>::KeyExpiration: IsUnset,
pub fn maybe_key_expiration(
self,
value: Option<KeyExpirationConfig>,
) -> ApiKeyPluginBuilder<SetKeyExpiration<S>>where
<S as State>::KeyExpiration: IsUnset,
Sourcepub fn rate_limit(
self,
value: RateLimitDefaults,
) -> ApiKeyPluginBuilder<SetRateLimit<S>>where
<S as State>::RateLimit: IsUnset,
pub fn rate_limit(
self,
value: RateLimitDefaults,
) -> ApiKeyPluginBuilder<SetRateLimit<S>>where
<S as State>::RateLimit: IsUnset,
Sourcepub fn maybe_rate_limit(
self,
value: Option<RateLimitDefaults>,
) -> ApiKeyPluginBuilder<SetRateLimit<S>>where
<S as State>::RateLimit: IsUnset,
pub fn maybe_rate_limit(
self,
value: Option<RateLimitDefaults>,
) -> ApiKeyPluginBuilder<SetRateLimit<S>>where
<S as State>::RateLimit: IsUnset,
Sourcepub fn enable_session_for_api_keys(
self,
value: bool,
) -> ApiKeyPluginBuilder<SetEnableSessionForApiKeys<S>>where
<S as State>::EnableSessionForApiKeys: IsUnset,
pub fn enable_session_for_api_keys(
self,
value: bool,
) -> ApiKeyPluginBuilder<SetEnableSessionForApiKeys<S>>where
<S as State>::EnableSessionForApiKeys: IsUnset,
Sourcepub fn maybe_enable_session_for_api_keys(
self,
value: Option<bool>,
) -> ApiKeyPluginBuilder<SetEnableSessionForApiKeys<S>>where
<S as State>::EnableSessionForApiKeys: IsUnset,
pub fn maybe_enable_session_for_api_keys(
self,
value: Option<bool>,
) -> ApiKeyPluginBuilder<SetEnableSessionForApiKeys<S>>where
<S as State>::EnableSessionForApiKeys: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for ApiKeyPluginBuilder<S>
impl<S> RefUnwindSafe for ApiKeyPluginBuilder<S>
impl<S> Send for ApiKeyPluginBuilder<S>
impl<S> Sync for ApiKeyPluginBuilder<S>
impl<S> Unpin for ApiKeyPluginBuilder<S>
impl<S> UnsafeUnpin for ApiKeyPluginBuilder<S>
impl<S> UnwindSafe for ApiKeyPluginBuilder<S>
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