#[non_exhaustive]pub struct ListMetricDescriptorsResponse {
pub metric_descriptors: Vec<MetricDescriptor>,
pub next_page_token: String,
/* private fields */
}Expand description
The ListMetricDescriptors 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.metric_descriptors: Vec<MetricDescriptor>The metric descriptors that are available to the project
and that match the value of filter, if present.
next_page_token: StringIf there are more results than have been returned, then this field is set
to a non-empty value. To see the additional results,
use that value as page_token in the next call to this method.
Implementations§
Source§impl ListMetricDescriptorsResponse
impl ListMetricDescriptorsResponse
pub fn new() -> Self
Sourcepub fn set_metric_descriptors<T, V>(self, v: T) -> Self
pub fn set_metric_descriptors<T, V>(self, v: T) -> Self
Sets the value of metric_descriptors.
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.
Trait Implementations§
Source§impl Clone for ListMetricDescriptorsResponse
impl Clone for ListMetricDescriptorsResponse
Source§fn clone(&self) -> ListMetricDescriptorsResponse
fn clone(&self) -> ListMetricDescriptorsResponse
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 ListMetricDescriptorsResponse
impl Default for ListMetricDescriptorsResponse
Source§fn default() -> ListMetricDescriptorsResponse
fn default() -> ListMetricDescriptorsResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for ListMetricDescriptorsResponse
impl PartialEq for ListMetricDescriptorsResponse
Source§fn eq(&self, other: &ListMetricDescriptorsResponse) -> bool
fn eq(&self, other: &ListMetricDescriptorsResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ListMetricDescriptorsResponse
Auto Trait Implementations§
impl Freeze for ListMetricDescriptorsResponse
impl RefUnwindSafe for ListMetricDescriptorsResponse
impl Send for ListMetricDescriptorsResponse
impl Sync for ListMetricDescriptorsResponse
impl Unpin for ListMetricDescriptorsResponse
impl UnwindSafe for ListMetricDescriptorsResponse
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