#[non_exhaustive]pub struct GetLogMetricRequest {
pub metric_name: String,
/* private fields */
}Expand description
The parameters to GetLogMetric.
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 desired metric:
"projects/[PROJECT_ID]/metrics/[METRIC_ID]"Implementations§
Source§impl GetLogMetricRequest
impl GetLogMetricRequest
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.
§Example
ⓘ
let x = GetLogMetricRequest::new().set_metric_name("example");Trait Implementations§
Source§impl Clone for GetLogMetricRequest
impl Clone for GetLogMetricRequest
Source§fn clone(&self) -> GetLogMetricRequest
fn clone(&self) -> GetLogMetricRequest
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 GetLogMetricRequest
impl Debug for GetLogMetricRequest
Source§impl Default for GetLogMetricRequest
impl Default for GetLogMetricRequest
Source§fn default() -> GetLogMetricRequest
fn default() -> GetLogMetricRequest
Returns the “default value” for a type. Read more
Source§impl Message for GetLogMetricRequest
impl Message for GetLogMetricRequest
Source§impl PartialEq for GetLogMetricRequest
impl PartialEq for GetLogMetricRequest
impl StructuralPartialEq for GetLogMetricRequest
Auto Trait Implementations§
impl Freeze for GetLogMetricRequest
impl RefUnwindSafe for GetLogMetricRequest
impl Send for GetLogMetricRequest
impl Sync for GetLogMetricRequest
impl Unpin for GetLogMetricRequest
impl UnwindSafe for GetLogMetricRequest
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