#[non_exhaustive]pub struct SummarizeMaintenancesResponse {
pub maintenances: Vec<MaintenanceSummary>,
pub next_page_token: String,
pub unreachable: Vec<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.maintenances: Vec<MaintenanceSummary>The resulting summaries.
next_page_token: StringIf present, the next page token can be provided to a subsequent SummarizeMaintenances call to list the next page. If empty, there are no more pages.
unreachable: Vec<String>Unordered list. Locations that could not be reached.
Implementations§
Source§impl SummarizeMaintenancesResponse
impl SummarizeMaintenancesResponse
pub fn new() -> Self
Sourcepub fn set_maintenances<T, V>(self, v: T) -> Self
pub fn set_maintenances<T, V>(self, v: T) -> Self
Sets the value of maintenances.
§Example
ⓘ
use google_cloud_maintenance_api_v1::model::MaintenanceSummary;
let x = SummarizeMaintenancesResponse::new()
.set_maintenances([
MaintenanceSummary::default()/* use setters */,
MaintenanceSummary::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 = SummarizeMaintenancesResponse::new().set_next_page_token("example");Sourcepub fn set_unreachable<T, V>(self, v: T) -> Self
pub fn set_unreachable<T, V>(self, v: T) -> Self
Sets the value of unreachable.
§Example
ⓘ
let x = SummarizeMaintenancesResponse::new().set_unreachable(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for SummarizeMaintenancesResponse
impl Clone for SummarizeMaintenancesResponse
Source§fn clone(&self) -> SummarizeMaintenancesResponse
fn clone(&self) -> SummarizeMaintenancesResponse
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 SummarizeMaintenancesResponse
impl Default for SummarizeMaintenancesResponse
Source§fn default() -> SummarizeMaintenancesResponse
fn default() -> SummarizeMaintenancesResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for SummarizeMaintenancesResponse
impl PartialEq for SummarizeMaintenancesResponse
Source§fn eq(&self, other: &SummarizeMaintenancesResponse) -> bool
fn eq(&self, other: &SummarizeMaintenancesResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SummarizeMaintenancesResponse
Auto Trait Implementations§
impl Freeze for SummarizeMaintenancesResponse
impl RefUnwindSafe for SummarizeMaintenancesResponse
impl Send for SummarizeMaintenancesResponse
impl Sync for SummarizeMaintenancesResponse
impl Unpin for SummarizeMaintenancesResponse
impl UnwindSafe for SummarizeMaintenancesResponse
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