pub struct SecretMapping {
pub schema_name: String,
pub mappings: HashMap<String, String>,
pub templates: HashMap<String, String>,
}Expand description
Mapping between credential fields and secret names
Fields§
§schema_name: String§mappings: HashMap<String, String>§templates: HashMap<String, String>Implementations§
Source§impl SecretMapping
impl SecretMapping
pub fn new(schema_name: &str) -> Self
pub fn add_mapping(&mut self, field: &str, secret_name: &str) -> &mut Self
pub fn get_secret_name(&self, field: &str) -> Option<&String>
pub fn to_secrets(&self, credentials: &Credentials) -> Vec<Secret>
Trait Implementations§
Source§impl Clone for SecretMapping
impl Clone for SecretMapping
Source§fn clone(&self) -> SecretMapping
fn clone(&self) -> SecretMapping
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 moreAuto Trait Implementations§
impl Freeze for SecretMapping
impl RefUnwindSafe for SecretMapping
impl Send for SecretMapping
impl Sync for SecretMapping
impl Unpin for SecretMapping
impl UnwindSafe for SecretMapping
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