pub struct KmsUsageRecord {
pub timestamp: DateTime<Utc>,
pub operation: String,
pub service_principal: String,
pub account_id: String,
pub key_arn: String,
pub encryption_context: HashMap<String, String>,
}Expand description
One recorded KMS hook call. Returned by the introspection endpoint
so test code can assert kms:GenerateDataKey / kms:Decrypt ran
on the expected key + service principal.
Fields§
§timestamp: DateTime<Utc>§operation: String§service_principal: String§account_id: String§key_arn: String§encryption_context: HashMap<String, String>Trait Implementations§
Source§impl Clone for KmsUsageRecord
impl Clone for KmsUsageRecord
Source§fn clone(&self) -> KmsUsageRecord
fn clone(&self) -> KmsUsageRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KmsUsageRecord
impl RefUnwindSafe for KmsUsageRecord
impl Send for KmsUsageRecord
impl Sync for KmsUsageRecord
impl Unpin for KmsUsageRecord
impl UnsafeUnpin for KmsUsageRecord
impl UnwindSafe for KmsUsageRecord
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