#[non_exhaustive]pub struct DuplicateChartRequest {
pub name: String,
pub dashboard_chart: String,
/* private fields */
}Expand description
Request message to duplicate chart in a dashboard.
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.name: StringRequired. The dashboard name that involves chart duplication. Format: projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}
dashboard_chart: StringRequired. The dashboard chart name to duplicate.
Implementations§
Source§impl DuplicateChartRequest
impl DuplicateChartRequest
Sourcepub fn set_dashboard_chart<T: Into<String>>(self, v: T) -> Self
pub fn set_dashboard_chart<T: Into<String>>(self, v: T) -> Self
Sets the value of dashboard_chart.
§Example
ⓘ
let x = DuplicateChartRequest::new().set_dashboard_chart(format!("projects/{project_id}/locations/{location_id}/instances/{instance_id}/dashboardCharts/{chart_id}"));Trait Implementations§
Source§impl Clone for DuplicateChartRequest
impl Clone for DuplicateChartRequest
Source§fn clone(&self) -> DuplicateChartRequest
fn clone(&self) -> DuplicateChartRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DuplicateChartRequest
impl Debug for DuplicateChartRequest
Source§impl Default for DuplicateChartRequest
impl Default for DuplicateChartRequest
Source§fn default() -> DuplicateChartRequest
fn default() -> DuplicateChartRequest
Returns the “default value” for a type. Read more
Source§impl Message for DuplicateChartRequest
impl Message for DuplicateChartRequest
Source§impl PartialEq for DuplicateChartRequest
impl PartialEq for DuplicateChartRequest
Source§fn eq(&self, other: &DuplicateChartRequest) -> bool
fn eq(&self, other: &DuplicateChartRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DuplicateChartRequest
Auto Trait Implementations§
impl Freeze for DuplicateChartRequest
impl RefUnwindSafe for DuplicateChartRequest
impl Send for DuplicateChartRequest
impl Sync for DuplicateChartRequest
impl Unpin for DuplicateChartRequest
impl UnsafeUnpin for DuplicateChartRequest
impl UnwindSafe for DuplicateChartRequest
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