#[non_exhaustive]pub struct ListResourceMaintenancesRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub filter: String,
pub order_by: String,
/* private fields */
}Expand description
The request structure for the ListResourceMaintenances method.
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.parent: StringRequired. The parent of the resource maintenance.
page_size: i32The maximum number of resource maintenances to send per page.
page_token: StringThe page token: If the next_page_token from a previous response is provided, this request will send the subsequent page.
filter: StringFilter the list as specified in https://google.aip.dev/160.
order_by: StringOrder results as specified in https://google.aip.dev/132.
Implementations§
Source§impl ListResourceMaintenancesRequest
impl ListResourceMaintenancesRequest
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 = ListResourceMaintenancesRequest::new().set_page_token("example");Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for ListResourceMaintenancesRequest
impl Clone for ListResourceMaintenancesRequest
Source§fn clone(&self) -> ListResourceMaintenancesRequest
fn clone(&self) -> ListResourceMaintenancesRequest
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 ListResourceMaintenancesRequest
impl Default for ListResourceMaintenancesRequest
Source§fn default() -> ListResourceMaintenancesRequest
fn default() -> ListResourceMaintenancesRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for ListResourceMaintenancesRequest
impl PartialEq for ListResourceMaintenancesRequest
Source§fn eq(&self, other: &ListResourceMaintenancesRequest) -> bool
fn eq(&self, other: &ListResourceMaintenancesRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ListResourceMaintenancesRequest
Auto Trait Implementations§
impl Freeze for ListResourceMaintenancesRequest
impl RefUnwindSafe for ListResourceMaintenancesRequest
impl Send for ListResourceMaintenancesRequest
impl Sync for ListResourceMaintenancesRequest
impl Unpin for ListResourceMaintenancesRequest
impl UnwindSafe for ListResourceMaintenancesRequest
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