#[non_exhaustive]pub struct ListNotificationChannelDescriptorsResponse {
pub channel_descriptors: Vec<NotificationChannelDescriptor>,
pub next_page_token: String,
/* private fields */
}Expand description
The ListNotificationChannelDescriptors response.
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.channel_descriptors: Vec<NotificationChannelDescriptor>The monitored resource descriptors supported for the specified project, optionally filtered.
next_page_token: StringIf not empty, indicates that there may be more results that match
the request. Use the value in the page_token field in a
subsequent request to fetch the next set of results. If empty,
all results have been returned.
Implementations§
Source§impl ListNotificationChannelDescriptorsResponse
impl ListNotificationChannelDescriptorsResponse
pub fn new() -> Self
Sourcepub fn set_channel_descriptors<T, V>(self, v: T) -> Self
pub fn set_channel_descriptors<T, V>(self, v: T) -> Self
Sets the value of channel_descriptors.
§Example
ⓘ
use google_cloud_monitoring_v3::model::NotificationChannelDescriptor;
let x = ListNotificationChannelDescriptorsResponse::new()
.set_channel_descriptors([
NotificationChannelDescriptor::default()/* use setters */,
NotificationChannelDescriptor::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 = ListNotificationChannelDescriptorsResponse::new().set_next_page_token("example");Trait Implementations§
Source§impl Clone for ListNotificationChannelDescriptorsResponse
impl Clone for ListNotificationChannelDescriptorsResponse
Source§fn clone(&self) -> ListNotificationChannelDescriptorsResponse
fn clone(&self) -> ListNotificationChannelDescriptorsResponse
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 ListNotificationChannelDescriptorsResponse
impl Default for ListNotificationChannelDescriptorsResponse
Source§fn default() -> ListNotificationChannelDescriptorsResponse
fn default() -> ListNotificationChannelDescriptorsResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for ListNotificationChannelDescriptorsResponse
impl PartialEq for ListNotificationChannelDescriptorsResponse
Source§fn eq(&self, other: &ListNotificationChannelDescriptorsResponse) -> bool
fn eq(&self, other: &ListNotificationChannelDescriptorsResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ListNotificationChannelDescriptorsResponse
Auto Trait Implementations§
impl Freeze for ListNotificationChannelDescriptorsResponse
impl RefUnwindSafe for ListNotificationChannelDescriptorsResponse
impl Send for ListNotificationChannelDescriptorsResponse
impl Sync for ListNotificationChannelDescriptorsResponse
impl Unpin for ListNotificationChannelDescriptorsResponse
impl UnwindSafe for ListNotificationChannelDescriptorsResponse
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