pub struct AuthInfo {
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.
Empty strings mean “not configured”. Use the has_token() and
has_gateway() helpers to check.
Fields§
§token_field: StringAPI field name for the authentication token (e.g., “token”).
env_var: StringEnvironment variable that supplies the token (e.g., AKEYLESS_ACCESS_TOKEN).
gateway_url_field: StringAPI field name for the gateway URL (e.g., api_gateway_address).
gateway_env_var: StringEnvironment variable that supplies the gateway URL (e.g., AKEYLESS_GATEWAY).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthInfo
impl<'de> Deserialize<'de> for AuthInfo
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.
Source§impl FromSExpr for AuthInfo
impl FromSExpr for AuthInfo
Source§fn from_sexpr(s: &SExpr) -> Result<Self, SExprError>
fn from_sexpr(s: &SExpr) -> Result<Self, SExprError>
Errors Read more
Auto Trait Implementations§
impl Freeze for AuthInfo
impl RefUnwindSafe for AuthInfo
impl Send for AuthInfo
impl Sync for AuthInfo
impl Unpin for AuthInfo
impl UnsafeUnpin for AuthInfo
impl UnwindSafe for AuthInfo
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