#[non_exhaustive]pub struct ListSecretVersionsResponse {
pub versions: Vec<SecretVersion>,
pub next_page_token: String,
pub total_size: i32,
}Expand description
Response message for SecretManagerService.ListSecretVersions.
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.versions: Vec<SecretVersion>The list of SecretVersions sorted in reverse by create_time (newest first).
next_page_token: StringA token to retrieve the next page of results. Pass this value in ListSecretVersionsRequest.page_token to retrieve the next page.
total_size: i32The total number of SecretVersions but 0 when the ListSecretsRequest.filter field is set.
Implementations§
Source§impl ListSecretVersionsResponse
impl ListSecretVersionsResponse
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.
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.
Sourcepub fn set_versions<T, V>(self, v: T) -> Self
pub fn set_versions<T, V>(self, v: T) -> Self
Sets the value of versions.
Trait Implementations§
Source§impl Clone for ListSecretVersionsResponse
impl Clone for ListSecretVersionsResponse
Source§fn clone(&self) -> ListSecretVersionsResponse
fn clone(&self) -> ListSecretVersionsResponse
Returns a copy 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 ListSecretVersionsResponse
impl Debug for ListSecretVersionsResponse
Source§impl Default for ListSecretVersionsResponse
impl Default for ListSecretVersionsResponse
Source§fn default() -> ListSecretVersionsResponse
fn default() -> ListSecretVersionsResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ListSecretVersionsResponsewhere
ListSecretVersionsResponse: Default,
impl<'de> Deserialize<'de> for ListSecretVersionsResponsewhere
ListSecretVersionsResponse: Default,
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for ListSecretVersionsResponse
impl Message for ListSecretVersionsResponse
impl StructuralPartialEq for ListSecretVersionsResponse
Auto Trait Implementations§
impl Freeze for ListSecretVersionsResponse
impl RefUnwindSafe for ListSecretVersionsResponse
impl Send for ListSecretVersionsResponse
impl Sync for ListSecretVersionsResponse
impl Unpin for ListSecretVersionsResponse
impl UnwindSafe for ListSecretVersionsResponse
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