Struct google_cloudkms1::CryptoKeyVersion
source · pub struct CryptoKeyVersion {
pub state: Option<String>,
pub create_time: Option<String>,
pub name: Option<String>,
pub destroy_time: Option<String>,
pub destroy_event_time: Option<String>,
}Expand description
A CryptoKeyVersion represents an individual cryptographic key, and the associated key material.
It can be used for cryptographic operations either directly, or via its parent CryptoKey, in which case the server will choose the appropriate version for the operation.
For security reasons, the raw cryptographic key material represented by a CryptoKeyVersion can never be viewed or exported. It can only be used to encrypt or decrypt data when an authorized user or application invokes Cloud KMS.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations key rings crypto keys crypto key versions destroy projects (response)
- locations key rings crypto keys crypto key versions get projects (response)
- locations key rings crypto keys crypto key versions patch projects (request|response)
- locations key rings crypto keys crypto key versions restore projects (response)
- locations key rings crypto keys crypto key versions create projects (request|response)
Fields§
§state: Option<String>The current state of the CryptoKeyVersion.
create_time: Option<String>Output only. The time at which this CryptoKeyVersion was created.
name: Option<String>Output only. The resource name for this CryptoKeyVersion in the format
projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*.
destroy_time: Option<String>Output only. The time this CryptoKeyVersion’s key material is scheduled for destruction. Only present if state is DESTROY_SCHEDULED.
destroy_event_time: Option<String>Output only. The time this CryptoKeyVersion’s key material was destroyed. Only present if state is DESTROYED.
Trait Implementations§
source§impl Clone for CryptoKeyVersion
impl Clone for CryptoKeyVersion
source§fn clone(&self) -> CryptoKeyVersion
fn clone(&self) -> CryptoKeyVersion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CryptoKeyVersion
impl Debug for CryptoKeyVersion
source§impl Default for CryptoKeyVersion
impl Default for CryptoKeyVersion
source§fn default() -> CryptoKeyVersion
fn default() -> CryptoKeyVersion
source§impl<'de> Deserialize<'de> for CryptoKeyVersion
impl<'de> Deserialize<'de> for CryptoKeyVersion
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>,
source§impl Serialize for CryptoKeyVersion
impl Serialize for CryptoKeyVersion
impl RequestValue for CryptoKeyVersion
impl ResponseResult for CryptoKeyVersion
Auto Trait Implementations§
impl Freeze for CryptoKeyVersion
impl RefUnwindSafe for CryptoKeyVersion
impl Send for CryptoKeyVersion
impl Sync for CryptoKeyVersion
impl Unpin for CryptoKeyVersion
impl UnwindSafe for CryptoKeyVersion
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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>
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>
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 more