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