#[non_exhaustive]pub struct SummarizeMaintenancesRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub filter: String,
pub order_by: String,
/* private fields */
}Expand description
Request message for SummarizeMaintenances custom 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.
eg. projects/123/locations/*
page_size: i32The maximum number of resource maintenances to send per page. The default page size is 20 and the maximum is 1000.
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. Supported fields include:
maintenance.maintenanceNameExamples:maintenance.maintenanceName="eb3b709c-9ca1-5472-9fb6-800a3849eda1"
order_by: StringOrder results as specified in https://google.aip.dev/132.
Implementations§
Source§impl SummarizeMaintenancesRequest
impl SummarizeMaintenancesRequest
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 = SummarizeMaintenancesRequest::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 SummarizeMaintenancesRequest
impl Clone for SummarizeMaintenancesRequest
Source§fn clone(&self) -> SummarizeMaintenancesRequest
fn clone(&self) -> SummarizeMaintenancesRequest
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 SummarizeMaintenancesRequest
impl Debug for SummarizeMaintenancesRequest
Source§impl Default for SummarizeMaintenancesRequest
impl Default for SummarizeMaintenancesRequest
Source§fn default() -> SummarizeMaintenancesRequest
fn default() -> SummarizeMaintenancesRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for SummarizeMaintenancesRequest
impl PartialEq for SummarizeMaintenancesRequest
Source§fn eq(&self, other: &SummarizeMaintenancesRequest) -> bool
fn eq(&self, other: &SummarizeMaintenancesRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SummarizeMaintenancesRequest
Auto Trait Implementations§
impl Freeze for SummarizeMaintenancesRequest
impl RefUnwindSafe for SummarizeMaintenancesRequest
impl Send for SummarizeMaintenancesRequest
impl Sync for SummarizeMaintenancesRequest
impl Unpin for SummarizeMaintenancesRequest
impl UnwindSafe for SummarizeMaintenancesRequest
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