#[non_exhaustive]pub struct AddChartRequest {
pub name: String,
pub dashboard_query: Option<DashboardQuery>,
pub dashboard_chart: Option<DashboardChart>,
pub chart_layout: Option<ChartLayout>,
/* private fields */
}Expand description
Request message to add 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 to add chart in. Format: projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}
dashboard_query: Option<DashboardQuery>Optional. Query used to create the chart.
dashboard_chart: Option<DashboardChart>Required. Chart to be added to the dashboard.
chart_layout: Option<ChartLayout>Required. ChartLayout for newly added chart.
Implementations§
Source§impl AddChartRequest
impl AddChartRequest
Sourcepub fn set_dashboard_query<T>(self, v: T) -> Selfwhere
T: Into<DashboardQuery>,
pub fn set_dashboard_query<T>(self, v: T) -> Selfwhere
T: Into<DashboardQuery>,
Sets the value of dashboard_query.
§Example
ⓘ
use google_cloud_chronicle_v1::model::DashboardQuery;
let x = AddChartRequest::new().set_dashboard_query(DashboardQuery::default()/* use setters */);Sourcepub fn set_or_clear_dashboard_query<T>(self, v: Option<T>) -> Selfwhere
T: Into<DashboardQuery>,
pub fn set_or_clear_dashboard_query<T>(self, v: Option<T>) -> Selfwhere
T: Into<DashboardQuery>,
Sets or clears the value of dashboard_query.
§Example
ⓘ
use google_cloud_chronicle_v1::model::DashboardQuery;
let x = AddChartRequest::new().set_or_clear_dashboard_query(Some(DashboardQuery::default()/* use setters */));
let x = AddChartRequest::new().set_or_clear_dashboard_query(None::<DashboardQuery>);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 = AddChartRequest::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 = AddChartRequest::new().set_or_clear_dashboard_chart(Some(DashboardChart::default()/* use setters */));
let x = AddChartRequest::new().set_or_clear_dashboard_chart(None::<DashboardChart>);Sourcepub fn set_chart_layout<T>(self, v: T) -> Selfwhere
T: Into<ChartLayout>,
pub fn set_chart_layout<T>(self, v: T) -> Selfwhere
T: Into<ChartLayout>,
Sets the value of chart_layout.
§Example
ⓘ
use google_cloud_chronicle_v1::model::dashboard_definition::chart_config::ChartLayout;
let x = AddChartRequest::new().set_chart_layout(ChartLayout::default()/* use setters */);Sourcepub fn set_or_clear_chart_layout<T>(self, v: Option<T>) -> Selfwhere
T: Into<ChartLayout>,
pub fn set_or_clear_chart_layout<T>(self, v: Option<T>) -> Selfwhere
T: Into<ChartLayout>,
Sets or clears the value of chart_layout.
§Example
ⓘ
use google_cloud_chronicle_v1::model::dashboard_definition::chart_config::ChartLayout;
let x = AddChartRequest::new().set_or_clear_chart_layout(Some(ChartLayout::default()/* use setters */));
let x = AddChartRequest::new().set_or_clear_chart_layout(None::<ChartLayout>);Trait Implementations§
Source§impl Clone for AddChartRequest
impl Clone for AddChartRequest
Source§fn clone(&self) -> AddChartRequest
fn clone(&self) -> AddChartRequest
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 AddChartRequest
impl Debug for AddChartRequest
Source§impl Default for AddChartRequest
impl Default for AddChartRequest
Source§fn default() -> AddChartRequest
fn default() -> AddChartRequest
Returns the “default value” for a type. Read more
Source§impl Message for AddChartRequest
impl Message for AddChartRequest
Source§impl PartialEq for AddChartRequest
impl PartialEq for AddChartRequest
Source§fn eq(&self, other: &AddChartRequest) -> bool
fn eq(&self, other: &AddChartRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AddChartRequest
Auto Trait Implementations§
impl Freeze for AddChartRequest
impl RefUnwindSafe for AddChartRequest
impl Send for AddChartRequest
impl Sync for AddChartRequest
impl Unpin for AddChartRequest
impl UnsafeUnpin for AddChartRequest
impl UnwindSafe for AddChartRequest
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