pub struct AuthConfig {
pub token_field: String,
pub env_var: String,
pub gateway_url_field: String,
pub gateway_env_var: String,
}Expand description
Authentication configuration for a provider spec.
Fields§
§token_field: StringAPI field name for the authentication token.
env_var: StringEnvironment variable supplying the token.
gateway_url_field: StringAPI field name for the gateway URL.
gateway_env_var: StringEnvironment variable supplying the gateway URL.
Trait Implementations§
Source§impl Clone for AuthConfig
impl Clone for AuthConfig
Source§impl Debug for AuthConfig
impl Debug for AuthConfig
Source§impl Default for AuthConfig
impl Default for AuthConfig
Source§impl<'de> Deserialize<'de> for AuthConfig
impl<'de> Deserialize<'de> for AuthConfig
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 From<&AuthConfig> for AuthInfo
impl From<&AuthConfig> for AuthInfo
Source§fn from(auth: &AuthConfig) -> Self
fn from(auth: &AuthConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfig
impl Sync for AuthConfig
impl Unpin for AuthConfig
impl UnsafeUnpin for AuthConfig
impl UnwindSafe for AuthConfig
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