pub struct ParameterEncryptionInfo {
pub cek_table: CekTable,
pub parameters: HashMap<String, ParameterCryptoInfo>,
}Expand description
Parameter encryption metadata for a query.
This is returned by sp_describe_parameter_encryption and describes
how each parameter should be encrypted.
Fields§
§cek_table: CekTableCEK table for parameters.
parameters: HashMap<String, ParameterCryptoInfo>Mapping from parameter name to crypto metadata.
Implementations§
Source§impl ParameterEncryptionInfo
impl ParameterEncryptionInfo
Sourcepub fn add_parameter(&mut self, name: String, info: ParameterCryptoInfo)
pub fn add_parameter(&mut self, name: String, info: ParameterCryptoInfo)
Add encryption info for a parameter.
Sourcepub fn get_parameter(&self, name: &str) -> Option<&ParameterCryptoInfo>
pub fn get_parameter(&self, name: &str) -> Option<&ParameterCryptoInfo>
Get encryption info for a parameter.
Sourcepub fn needs_encryption(&self, name: &str) -> bool
pub fn needs_encryption(&self, name: &str) -> bool
Check if a parameter needs encryption.
Trait Implementations§
Source§impl Clone for ParameterEncryptionInfo
impl Clone for ParameterEncryptionInfo
Source§fn clone(&self) -> ParameterEncryptionInfo
fn clone(&self) -> ParameterEncryptionInfo
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 ParameterEncryptionInfo
impl Debug for ParameterEncryptionInfo
Auto Trait Implementations§
impl Freeze for ParameterEncryptionInfo
impl RefUnwindSafe for ParameterEncryptionInfo
impl Send for ParameterEncryptionInfo
impl Sync for ParameterEncryptionInfo
impl Unpin for ParameterEncryptionInfo
impl UnwindSafe for ParameterEncryptionInfo
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