#[non_exhaustive]pub struct ListCryptoKeysResponse {
pub crypto_keys: Vec<CryptoKey>,
pub next_page_token: String,
pub total_size: i32,
/* private fields */
}Expand description
Response message for KeyManagementService.ListCryptoKeys.
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_keys: Vec<CryptoKey>The list of CryptoKeys.
next_page_token: StringA token to retrieve next page of results. Pass this value in ListCryptoKeysRequest.page_token to retrieve the next page of results.
total_size: i32The total number of CryptoKeys that matched the query.
This field is not populated if ListCryptoKeysRequest.filter is applied.
Implementations§
Source§impl ListCryptoKeysResponse
impl ListCryptoKeysResponse
pub fn new() -> Self
Sourcepub fn set_crypto_keys<T, V>(self, v: T) -> Self
pub fn set_crypto_keys<T, V>(self, v: T) -> Self
Sets the value of crypto_keys.
§Example
ⓘ
use google_cloud_kms_v1::model::CryptoKey;
let x = ListCryptoKeysResponse::new()
.set_crypto_keys([
CryptoKey::default()/* use setters */,
CryptoKey::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 = ListCryptoKeysResponse::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
Trait Implementations§
Source§impl Clone for ListCryptoKeysResponse
impl Clone for ListCryptoKeysResponse
Source§fn clone(&self) -> ListCryptoKeysResponse
fn clone(&self) -> ListCryptoKeysResponse
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 ListCryptoKeysResponse
impl Debug for ListCryptoKeysResponse
Source§impl Default for ListCryptoKeysResponse
impl Default for ListCryptoKeysResponse
Source§fn default() -> ListCryptoKeysResponse
fn default() -> ListCryptoKeysResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListCryptoKeysResponse
impl Message for ListCryptoKeysResponse
Source§impl PartialEq for ListCryptoKeysResponse
impl PartialEq for ListCryptoKeysResponse
impl StructuralPartialEq for ListCryptoKeysResponse
Auto Trait Implementations§
impl Freeze for ListCryptoKeysResponse
impl RefUnwindSafe for ListCryptoKeysResponse
impl Send for ListCryptoKeysResponse
impl Sync for ListCryptoKeysResponse
impl Unpin for ListCryptoKeysResponse
impl UnsafeUnpin for ListCryptoKeysResponse
impl UnwindSafe for ListCryptoKeysResponse
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