pub struct VaultSettings {
pub address: String,
pub mount_path: String,
pub jwt_role: Option<String>,
pub namespace: Option<String>,
pub token: Option<String>,
}Fields§
§address: StringHashiCorp Vault server address (e.g., https://vault.company.com:8200)
mount_path: StringKV v2 secrets engine mount path (e.g., windmill)
jwt_role: Option<String>Vault JWT auth role name for Windmill (optional, if not provided token auth is used)
namespace: Option<String>Vault Enterprise namespace (optional)
token: Option<String>Static Vault token for testing/development (optional, if provided this is used instead of JWT authentication)
Implementations§
Source§impl VaultSettings
impl VaultSettings
pub fn new(address: String, mount_path: String) -> VaultSettings
Trait Implementations§
Source§impl Clone for VaultSettings
impl Clone for VaultSettings
Source§fn clone(&self) -> VaultSettings
fn clone(&self) -> VaultSettings
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 VaultSettings
impl Debug for VaultSettings
Source§impl Default for VaultSettings
impl Default for VaultSettings
Source§fn default() -> VaultSettings
fn default() -> VaultSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VaultSettings
impl<'de> Deserialize<'de> for VaultSettings
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 PartialEq for VaultSettings
impl PartialEq for VaultSettings
Source§impl Serialize for VaultSettings
impl Serialize for VaultSettings
impl StructuralPartialEq for VaultSettings
Auto Trait Implementations§
impl Freeze for VaultSettings
impl RefUnwindSafe for VaultSettings
impl Send for VaultSettings
impl Sync for VaultSettings
impl Unpin for VaultSettings
impl UnwindSafe for VaultSettings
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