#[non_exhaustive]pub struct ListDashboardsOptionalParams {
pub filter_shared: Option<bool>,
pub filter_deleted: Option<bool>,
pub count: Option<i64>,
pub start: Option<i64>,
}
Expand description
ListDashboardsOptionalParams is a struct for passing parameters to the method DashboardsAPI::list_dashboards
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.When true
, this query only returns shared custom created
or cloned dashboards.
filter_deleted: Option<bool>
When true
, this query returns only deleted custom-created
or cloned dashboards. This parameter is incompatible with filter[shared]
.
count: Option<i64>
The maximum number of dashboards returned in the list.
start: Option<i64>
The specific offset to use as the beginning of the returned response.
Implementations§
Source§impl ListDashboardsOptionalParams
impl ListDashboardsOptionalParams
When true
, this query only returns shared custom created
or cloned dashboards.
Examples found in repository?
examples/v1_dashboards_ListDashboards.rs (line 11)
7async fn main() {
8 let configuration = datadog::Configuration::new();
9 let api = DashboardsAPI::with_config(configuration);
10 let resp = api
11 .list_dashboards(ListDashboardsOptionalParams::default().filter_shared(false))
12 .await;
13 if let Ok(value) = resp {
14 println!("{:#?}", value);
15 } else {
16 println!("{:#?}", resp.unwrap_err());
17 }
18}
Sourcepub fn filter_deleted(self, value: bool) -> Self
pub fn filter_deleted(self, value: bool) -> Self
When true
, this query returns only deleted custom-created
or cloned dashboards. This parameter is incompatible with filter[shared]
.
Examples found in repository?
examples/v1_dashboards_ListDashboards_1773932563.rs (line 11)
7async fn main() {
8 let configuration = datadog::Configuration::new();
9 let api = DashboardsAPI::with_config(configuration);
10 let resp = api
11 .list_dashboards(ListDashboardsOptionalParams::default().filter_deleted(true))
12 .await;
13 if let Ok(value) = resp {
14 println!("{:#?}", value);
15 } else {
16 println!("{:#?}", resp.unwrap_err());
17 }
18}
Sourcepub fn count(self, value: i64) -> Self
pub fn count(self, value: i64) -> Self
The maximum number of dashboards returned in the list.
Examples found in repository?
examples/v1_dashboards_ListDashboards_1062671515.rs (line 13)
9async fn main() {
10 let configuration = datadog::Configuration::new();
11 let api = DashboardsAPI::with_config(configuration);
12 let response =
13 api.list_dashboards_with_pagination(ListDashboardsOptionalParams::default().count(2));
14 pin_mut!(response);
15 while let Some(resp) = response.next().await {
16 if let Ok(value) = resp {
17 println!("{:#?}", value);
18 } else {
19 println!("{:#?}", resp.unwrap_err());
20 }
21 }
22}
Trait Implementations§
Source§impl Clone for ListDashboardsOptionalParams
impl Clone for ListDashboardsOptionalParams
Source§fn clone(&self) -> ListDashboardsOptionalParams
fn clone(&self) -> ListDashboardsOptionalParams
Returns a duplicate of the value. Read more
1.0.0 · 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 ListDashboardsOptionalParams
impl Debug for ListDashboardsOptionalParams
Source§impl Default for ListDashboardsOptionalParams
impl Default for ListDashboardsOptionalParams
Source§fn default() -> ListDashboardsOptionalParams
fn default() -> ListDashboardsOptionalParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ListDashboardsOptionalParams
impl RefUnwindSafe for ListDashboardsOptionalParams
impl Send for ListDashboardsOptionalParams
impl Sync for ListDashboardsOptionalParams
impl Unpin for ListDashboardsOptionalParams
impl UnwindSafe for ListDashboardsOptionalParams
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