#[non_exhaustive]pub struct ListCryptoKeyVersionsResponse {
pub crypto_key_versions: Vec<CryptoKeyVersion>,
pub next_page_token: String,
pub total_size: i32,
/* private fields */
}Expand description
Response message for KeyManagementService.ListCryptoKeyVersions.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.crypto_key_versions: Vec<CryptoKeyVersion>The list of CryptoKeyVersions.
next_page_token: StringA token to retrieve next page of results. Pass this value in ListCryptoKeyVersionsRequest.page_token to retrieve the next page of results.
total_size: i32The total number of CryptoKeyVersions that matched the query.
This field is not populated if ListCryptoKeyVersionsRequest.filter is applied.
Implementations§
Source§impl ListCryptoKeyVersionsResponse
impl ListCryptoKeyVersionsResponse
pub fn new() -> Self
Sourcepub fn set_crypto_key_versions<T, V>(self, v: T) -> Self
pub fn set_crypto_key_versions<T, V>(self, v: T) -> Self
Sets the value of crypto_key_versions.
§Example
ⓘ
use google_cloud_kms_v1::model::CryptoKeyVersion;
let x = ListCryptoKeyVersionsResponse::new()
.set_crypto_key_versions([
CryptoKeyVersion::default()/* use setters */,
CryptoKeyVersion::default()/* use (different) setters */,
]);Sourcepub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of next_page_token.
§Example
ⓘ
let x = ListCryptoKeyVersionsResponse::new().set_next_page_token("example");Sourcepub fn set_total_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_total_size<T: Into<i32>>(self, v: T) -> Self
Sets the value of total_size.
§Example
ⓘ
let x = ListCryptoKeyVersionsResponse::new().set_total_size(42);Trait Implementations§
Source§impl Clone for ListCryptoKeyVersionsResponse
impl Clone for ListCryptoKeyVersionsResponse
Source§fn clone(&self) -> ListCryptoKeyVersionsResponse
fn clone(&self) -> ListCryptoKeyVersionsResponse
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 Default for ListCryptoKeyVersionsResponse
impl Default for ListCryptoKeyVersionsResponse
Source§fn default() -> ListCryptoKeyVersionsResponse
fn default() -> ListCryptoKeyVersionsResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for ListCryptoKeyVersionsResponse
impl PartialEq for ListCryptoKeyVersionsResponse
Source§fn eq(&self, other: &ListCryptoKeyVersionsResponse) -> bool
fn eq(&self, other: &ListCryptoKeyVersionsResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ListCryptoKeyVersionsResponse
Auto Trait Implementations§
impl Freeze for ListCryptoKeyVersionsResponse
impl RefUnwindSafe for ListCryptoKeyVersionsResponse
impl Send for ListCryptoKeyVersionsResponse
impl Sync for ListCryptoKeyVersionsResponse
impl Unpin for ListCryptoKeyVersionsResponse
impl UnsafeUnpin for ListCryptoKeyVersionsResponse
impl UnwindSafe for ListCryptoKeyVersionsResponse
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