#[non_exhaustive]pub struct ListIncidentsOptionalParams {
pub include: Option<Vec<IncidentRelatedObject>>,
pub page_size: Option<i64>,
pub page_offset: Option<i64>,
}
Expand description
ListIncidentsOptionalParams is a struct for passing parameters to the method IncidentsAPI::list_incidents
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.include: Option<Vec<IncidentRelatedObject>>
Specifies which types of related objects should be included in the response.
page_size: Option<i64>
Size for a given page. The maximum allowed value is 100.
page_offset: Option<i64>
Specific offset to use as the beginning of the returned page.
Implementations§
Source§impl ListIncidentsOptionalParams
impl ListIncidentsOptionalParams
Sourcepub fn include(self, value: Vec<IncidentRelatedObject>) -> Self
pub fn include(self, value: Vec<IncidentRelatedObject>) -> Self
Specifies which types of related objects should be included in the response.
Sourcepub fn page_size(self, value: i64) -> Self
pub fn page_size(self, value: i64) -> Self
Size for a given page. The maximum allowed value is 100.
Examples found in repository?
examples/v2_incidents_ListIncidents_2665616954.rs (line 14)
9async fn main() {
10 let mut configuration = datadog::Configuration::new();
11 configuration.set_unstable_operation_enabled("v2.ListIncidents", true);
12 let api = IncidentsAPI::with_config(configuration);
13 let response =
14 api.list_incidents_with_pagination(ListIncidentsOptionalParams::default().page_size(2));
15 pin_mut!(response);
16 while let Some(resp) = response.next().await {
17 if let Ok(value) = resp {
18 println!("{:#?}", value);
19 } else {
20 println!("{:#?}", resp.unwrap_err());
21 }
22 }
23}
Sourcepub fn page_offset(self, value: i64) -> Self
pub fn page_offset(self, value: i64) -> Self
Specific offset to use as the beginning of the returned page.
Trait Implementations§
Source§impl Clone for ListIncidentsOptionalParams
impl Clone for ListIncidentsOptionalParams
Source§fn clone(&self) -> ListIncidentsOptionalParams
fn clone(&self) -> ListIncidentsOptionalParams
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 ListIncidentsOptionalParams
impl Debug for ListIncidentsOptionalParams
Source§impl Default for ListIncidentsOptionalParams
impl Default for ListIncidentsOptionalParams
Source§fn default() -> ListIncidentsOptionalParams
fn default() -> ListIncidentsOptionalParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ListIncidentsOptionalParams
impl RefUnwindSafe for ListIncidentsOptionalParams
impl Send for ListIncidentsOptionalParams
impl Sync for ListIncidentsOptionalParams
impl Unpin for ListIncidentsOptionalParams
impl UnwindSafe for ListIncidentsOptionalParams
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