Struct fuel_indexer_lib::config::auth::AuthenticationConfig
source · pub struct AuthenticationConfig {
pub enabled: bool,
pub strategy: Option<AuthenticationStrategy>,
pub jwt_secret: Option<String>,
pub jwt_issuer: Option<String>,
pub jwt_expiry: Option<usize>,
}
Expand description
Indexer service authentication configuration.
Fields§
§enabled: bool
§strategy: Option<AuthenticationStrategy>
§jwt_secret: Option<String>
§jwt_issuer: Option<String>
§jwt_expiry: Option<usize>
Trait Implementations§
source§impl Clone for AuthenticationConfig
impl Clone for AuthenticationConfig
source§fn clone(&self) -> AuthenticationConfig
fn clone(&self) -> AuthenticationConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AuthenticationConfig
impl Debug for AuthenticationConfig
source§impl Default for AuthenticationConfig
impl Default for AuthenticationConfig
source§impl<'de> Deserialize<'de> for AuthenticationConfig
impl<'de> Deserialize<'de> for AuthenticationConfig
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
source§impl Env for AuthenticationConfig
impl Env for AuthenticationConfig
source§fn inject_opt_env_vars(&mut self) -> Result<(), IndexerConfigError>
fn inject_opt_env_vars(&mut self) -> Result<(), IndexerConfigError>
Inject environment variables into AuthenticationConfig
.
Auto Trait Implementations§
impl RefUnwindSafe for AuthenticationConfig
impl Send for AuthenticationConfig
impl Sync for AuthenticationConfig
impl Unpin for AuthenticationConfig
impl UnwindSafe for AuthenticationConfig
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