#[non_exhaustive]pub struct DuplicateChartResponse {
pub native_dashboard: Option<NativeDashboard>,
pub dashboard_chart: Option<DashboardChart>,
/* private fields */
}Expand description
Response message for duplicating 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.native_dashboard: Option<NativeDashboard>Dashboard with chart added in definition.
dashboard_chart: Option<DashboardChart>Duplicated chart resource.
Implementations§
Source§impl DuplicateChartResponse
impl DuplicateChartResponse
Sourcepub fn set_native_dashboard<T>(self, v: T) -> Selfwhere
T: Into<NativeDashboard>,
pub fn set_native_dashboard<T>(self, v: T) -> Selfwhere
T: Into<NativeDashboard>,
Sets the value of native_dashboard.
§Example
ⓘ
use google_cloud_chronicle_v1::model::NativeDashboard;
let x = DuplicateChartResponse::new().set_native_dashboard(NativeDashboard::default()/* use setters */);Sourcepub fn set_or_clear_native_dashboard<T>(self, v: Option<T>) -> Selfwhere
T: Into<NativeDashboard>,
pub fn set_or_clear_native_dashboard<T>(self, v: Option<T>) -> Selfwhere
T: Into<NativeDashboard>,
Sets or clears the value of native_dashboard.
§Example
ⓘ
use google_cloud_chronicle_v1::model::NativeDashboard;
let x = DuplicateChartResponse::new().set_or_clear_native_dashboard(Some(NativeDashboard::default()/* use setters */));
let x = DuplicateChartResponse::new().set_or_clear_native_dashboard(None::<NativeDashboard>);Sourcepub fn set_dashboard_chart<T>(self, v: T) -> Selfwhere
T: Into<DashboardChart>,
pub fn set_dashboard_chart<T>(self, v: T) -> Selfwhere
T: Into<DashboardChart>,
Sets the value of dashboard_chart.
§Example
ⓘ
use google_cloud_chronicle_v1::model::DashboardChart;
let x = DuplicateChartResponse::new().set_dashboard_chart(DashboardChart::default()/* use setters */);Sourcepub fn set_or_clear_dashboard_chart<T>(self, v: Option<T>) -> Selfwhere
T: Into<DashboardChart>,
pub fn set_or_clear_dashboard_chart<T>(self, v: Option<T>) -> Selfwhere
T: Into<DashboardChart>,
Sets or clears the value of dashboard_chart.
§Example
ⓘ
use google_cloud_chronicle_v1::model::DashboardChart;
let x = DuplicateChartResponse::new().set_or_clear_dashboard_chart(Some(DashboardChart::default()/* use setters */));
let x = DuplicateChartResponse::new().set_or_clear_dashboard_chart(None::<DashboardChart>);Trait Implementations§
Source§impl Clone for DuplicateChartResponse
impl Clone for DuplicateChartResponse
Source§fn clone(&self) -> DuplicateChartResponse
fn clone(&self) -> DuplicateChartResponse
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 DuplicateChartResponse
impl Debug for DuplicateChartResponse
Source§impl Default for DuplicateChartResponse
impl Default for DuplicateChartResponse
Source§fn default() -> DuplicateChartResponse
fn default() -> DuplicateChartResponse
Returns the “default value” for a type. Read more
Source§impl Message for DuplicateChartResponse
impl Message for DuplicateChartResponse
Source§impl PartialEq for DuplicateChartResponse
impl PartialEq for DuplicateChartResponse
Source§fn eq(&self, other: &DuplicateChartResponse) -> bool
fn eq(&self, other: &DuplicateChartResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DuplicateChartResponse
Auto Trait Implementations§
impl Freeze for DuplicateChartResponse
impl RefUnwindSafe for DuplicateChartResponse
impl Send for DuplicateChartResponse
impl Sync for DuplicateChartResponse
impl Unpin for DuplicateChartResponse
impl UnsafeUnpin for DuplicateChartResponse
impl UnwindSafe for DuplicateChartResponse
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