#[non_exhaustive]pub struct AddChartResponse {
pub native_dashboard: Option<NativeDashboard>,
pub dashboard_chart: Option<DashboardChart>,
/* private fields */
}Expand description
Response message for adding 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>Created chart resource.
Implementations§
Source§impl AddChartResponse
impl AddChartResponse
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 = AddChartResponse::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 = AddChartResponse::new().set_or_clear_native_dashboard(Some(NativeDashboard::default()/* use setters */));
let x = AddChartResponse::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 = AddChartResponse::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 = AddChartResponse::new().set_or_clear_dashboard_chart(Some(DashboardChart::default()/* use setters */));
let x = AddChartResponse::new().set_or_clear_dashboard_chart(None::<DashboardChart>);Trait Implementations§
Source§impl Clone for AddChartResponse
impl Clone for AddChartResponse
Source§fn clone(&self) -> AddChartResponse
fn clone(&self) -> AddChartResponse
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 AddChartResponse
impl Debug for AddChartResponse
Source§impl Default for AddChartResponse
impl Default for AddChartResponse
Source§fn default() -> AddChartResponse
fn default() -> AddChartResponse
Returns the “default value” for a type. Read more
Source§impl Message for AddChartResponse
impl Message for AddChartResponse
Source§impl PartialEq for AddChartResponse
impl PartialEq for AddChartResponse
Source§fn eq(&self, other: &AddChartResponse) -> bool
fn eq(&self, other: &AddChartResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AddChartResponse
Auto Trait Implementations§
impl Freeze for AddChartResponse
impl RefUnwindSafe for AddChartResponse
impl Send for AddChartResponse
impl Sync for AddChartResponse
impl Unpin for AddChartResponse
impl UnsafeUnpin for AddChartResponse
impl UnwindSafe for AddChartResponse
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