pub struct VaultConfig {
pub address: Option<String>,
pub auth: VaultAuth,
pub mount: Option<String>,
pub role: Option<String>,
pub namespace: Option<String>,
pub tls_skip_verify: bool,
}Expand description
Configuration for the Vault credential backend.
Fields§
§address: Option<String>Vault server address (e.g. “https://vault.example.com:8200”). Falls back to VAULT_ADDR env var.
auth: VaultAuthAuthentication method (default: token).
mount: Option<String>AWS secrets engine mount path (default: “aws”).
role: Option<String>Vault role name for generating credentials.
namespace: Option<String>Vault namespace (for Vault Enterprise).
tls_skip_verify: boolSkip TLS verification (NOT recommended for production).
Implementations§
Source§impl VaultConfig
impl VaultConfig
Sourcepub fn resolve_address(&self) -> Result<String>
pub fn resolve_address(&self) -> Result<String>
Resolve the Vault address from config or VAULT_ADDR env var.
Sourcepub fn mount_path(&self) -> &str
pub fn mount_path(&self) -> &str
Resolve the secrets engine mount path (default: “aws”).
Trait Implementations§
Source§impl Clone for VaultConfig
impl Clone for VaultConfig
Source§fn clone(&self) -> VaultConfig
fn clone(&self) -> VaultConfig
Returns a duplicate 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 VaultConfig
impl Debug for VaultConfig
Source§impl Default for VaultConfig
impl Default for VaultConfig
Source§fn default() -> VaultConfig
fn default() -> VaultConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VaultConfig
impl<'de> Deserialize<'de> for VaultConfig
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
Auto Trait Implementations§
impl Freeze for VaultConfig
impl RefUnwindSafe for VaultConfig
impl Send for VaultConfig
impl Sync for VaultConfig
impl Unpin for VaultConfig
impl UnsafeUnpin for VaultConfig
impl UnwindSafe for VaultConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<D> DeserializeWith<JsonFormat> for Dwhere
D: DeserializeOwned,
impl<D> DeserializeWith<JsonFormat> for Dwhere
D: DeserializeOwned,
Source§fn deserialize_with(body: ResponseBody) -> Result<D, Error>
fn deserialize_with(body: ResponseBody) -> Result<D, Error>
Deserialize the response body using the specified format. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.