#[non_exhaustive]pub struct ListIncidentServicesOptionalParams {
pub include: Option<IncidentRelatedObject>,
pub page_size: Option<i64>,
pub page_offset: Option<i64>,
pub filter: Option<String>,
}
Expand description
ListIncidentServicesOptionalParams is a struct for passing parameters to the method IncidentServicesAPI::list_incident_services
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<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.
filter: Option<String>
A search query that filters services by name.
Implementations§
Source§impl ListIncidentServicesOptionalParams
impl ListIncidentServicesOptionalParams
Sourcepub fn include(self, value: IncidentRelatedObject) -> Self
pub fn include(self, value: 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.
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.
Sourcepub fn filter(self, value: String) -> Self
pub fn filter(self, value: String) -> Self
A search query that filters services by name.
Examples found in repository?
examples/v2_incident-services_ListIncidentServices.rs (line 16)
7async fn main() {
8 // there is a valid "service" in the system
9 let service_data_attributes_name = std::env::var("SERVICE_DATA_ATTRIBUTES_NAME").unwrap();
10 let mut configuration = datadog::Configuration::new();
11 configuration.set_unstable_operation_enabled("v2.ListIncidentServices", true);
12 let api = IncidentServicesAPI::with_config(configuration);
13 let resp = api
14 .list_incident_services(
15 ListIncidentServicesOptionalParams::default()
16 .filter(service_data_attributes_name.clone()),
17 )
18 .await;
19 if let Ok(value) = resp {
20 println!("{:#?}", value);
21 } else {
22 println!("{:#?}", resp.unwrap_err());
23 }
24}
Trait Implementations§
Source§impl Clone for ListIncidentServicesOptionalParams
impl Clone for ListIncidentServicesOptionalParams
Source§fn clone(&self) -> ListIncidentServicesOptionalParams
fn clone(&self) -> ListIncidentServicesOptionalParams
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 Default for ListIncidentServicesOptionalParams
impl Default for ListIncidentServicesOptionalParams
Source§fn default() -> ListIncidentServicesOptionalParams
fn default() -> ListIncidentServicesOptionalParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ListIncidentServicesOptionalParams
impl RefUnwindSafe for ListIncidentServicesOptionalParams
impl Send for ListIncidentServicesOptionalParams
impl Sync for ListIncidentServicesOptionalParams
impl Unpin for ListIncidentServicesOptionalParams
impl UnwindSafe for ListIncidentServicesOptionalParams
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