#[non_exhaustive]pub struct ListBackupsRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub filter: String,
/* private fields */
}Expand description
The request payload to list the backups.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The parent that owns this collection of backups. Format: projects/{project}
page_size: i32The maximum number of backups to return per response. The service might return fewer backups than this value. If a value for this parameter isn’t specified, then, at most, 500 backups are returned. The maximum value is 2,000. Any values that you set, which are greater than 2,000, are changed to 2,000.
page_token: StringA page token, received from a previous ListBackups call.
Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to ListBackups must match
the call that provided the page token.
filter: StringMultiple filter queries are separated by spaces. For example, ’instance:abc AND type:FINAL, ‘location:us’, ‘backupInterval.startTime>=1950-01-01T01:01:25.771Z’. You can filter by type, instance, backupInterval.startTime (creation time), or location.
Implementations§
Source§impl ListBackupsRequest
impl ListBackupsRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
§Example
let x = ListBackupsRequest::new().set_page_token("example");Trait Implementations§
Source§impl Clone for ListBackupsRequest
impl Clone for ListBackupsRequest
Source§fn clone(&self) -> ListBackupsRequest
fn clone(&self) -> ListBackupsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more