#[non_exhaustive]pub struct UpdateLogMetricRequest {
pub metric_name: String,
pub metric: Option<LogMetric>,
/* private fields */
}Expand description
The parameters to UpdateLogMetric.
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_name: StringRequired. The resource name of the metric to update:
"projects/[PROJECT_ID]/metrics/[METRIC_ID]"The updated metric must be provided in the request and it’s
name field must be the same as [METRIC_ID] If the metric
does not exist in [PROJECT_ID], then a new metric is created.
metric: Option<LogMetric>Required. The updated metric.
Implementations§
Source§impl UpdateLogMetricRequest
impl UpdateLogMetricRequest
pub fn new() -> Self
Sourcepub fn set_metric_name<T: Into<String>>(self, v: T) -> Self
pub fn set_metric_name<T: Into<String>>(self, v: T) -> Self
Sets the value of metric_name.
Sourcepub fn set_metric<T>(self, v: T) -> Self
pub fn set_metric<T>(self, v: T) -> Self
Sets the value of metric.
Trait Implementations§
Source§impl Clone for UpdateLogMetricRequest
impl Clone for UpdateLogMetricRequest
Source§fn clone(&self) -> UpdateLogMetricRequest
fn clone(&self) -> UpdateLogMetricRequest
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 UpdateLogMetricRequest
impl Debug for UpdateLogMetricRequest
Source§impl Default for UpdateLogMetricRequest
impl Default for UpdateLogMetricRequest
Source§fn default() -> UpdateLogMetricRequest
fn default() -> UpdateLogMetricRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateLogMetricRequest
impl Message for UpdateLogMetricRequest
Source§impl PartialEq for UpdateLogMetricRequest
impl PartialEq for UpdateLogMetricRequest
impl StructuralPartialEq for UpdateLogMetricRequest
Auto Trait Implementations§
impl Freeze for UpdateLogMetricRequest
impl RefUnwindSafe for UpdateLogMetricRequest
impl Send for UpdateLogMetricRequest
impl Sync for UpdateLogMetricRequest
impl Unpin for UpdateLogMetricRequest
impl UnwindSafe for UpdateLogMetricRequest
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