pub trait BasicAuthContextConfigSource<Creds>{
// Required methods
fn creds_config(&self) -> &BasicAuthCredsConfig<Creds>;
fn real_ip_access_config(&self) -> Option<&RealIpAccessConfig>;
fn zones_config(&self) -> &[BasicAuthZoneConfig];
fn realm_config(&self) -> Option<&str>;
fn post_auth_redirect_config(&self) -> &RedirectTargetConfig;
// Provided methods
fn resolve_creds_config(&self) -> BasicAuthCredsConfig<Creds>
where Creds: Clone { ... }
fn resolve_real_ip_access_config(
&self,
) -> BasicAuthContextResult<Option<RealIpAccessConfig>> { ... }
fn resolve_realm_config(&self) -> String { ... }
fn resolve_post_auth_redirect_config(
&self,
) -> BasicAuthContextResult<RedirectTargetConfig> { ... }
fn resolve_zones_config(
&self,
default_realm: &str,
default_post_auth_redirect: &RedirectTargetConfig,
) -> BasicAuthContextResult<Vec<ResolvedBasicAuthZoneConfig>> { ... }
fn resolve_all(
&self,
) -> Result<ResolvedBasicAuthContextConfig<Creds>, BasicAuthContextConfigBuildError>
where Creds: Clone { ... }
fn resolve_all_with_validator<V>(
&self,
validator: &V,
) -> Result<ResolvedBasicAuthContextConfig<Creds>, BasicAuthContextConfigBuildError>
where Creds: Clone,
V: BasicAuthContextConfigValidator<Creds> { ... }
}Required Methods§
fn creds_config(&self) -> &BasicAuthCredsConfig<Creds>
fn real_ip_access_config(&self) -> Option<&RealIpAccessConfig>
fn zones_config(&self) -> &[BasicAuthZoneConfig]
fn realm_config(&self) -> Option<&str>
fn post_auth_redirect_config(&self) -> &RedirectTargetConfig
Provided Methods§
fn resolve_creds_config(&self) -> BasicAuthCredsConfig<Creds>where
Creds: Clone,
fn resolve_real_ip_access_config( &self, ) -> BasicAuthContextResult<Option<RealIpAccessConfig>>
fn resolve_realm_config(&self) -> String
fn resolve_post_auth_redirect_config( &self, ) -> BasicAuthContextResult<RedirectTargetConfig>
fn resolve_zones_config( &self, default_realm: &str, default_post_auth_redirect: &RedirectTargetConfig, ) -> BasicAuthContextResult<Vec<ResolvedBasicAuthZoneConfig>>
fn resolve_all(
&self,
) -> Result<ResolvedBasicAuthContextConfig<Creds>, BasicAuthContextConfigBuildError>where
Creds: Clone,
fn resolve_all_with_validator<V>(
&self,
validator: &V,
) -> Result<ResolvedBasicAuthContextConfig<Creds>, BasicAuthContextConfigBuildError>where
Creds: Clone,
V: BasicAuthContextConfigValidator<Creds>,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.