#[non_exhaustive]pub struct GetTeamOnCallUsersOptionalParams {
pub include: Option<String>,
}
Expand description
GetTeamOnCallUsersOptionalParams is a struct for passing parameters to the method OnCallAPI::get_team_on_call_users
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<String>
Comma-separated list of included relationships to be returned. Allowed values: responders
, escalations
, escalations.responders
.
Implementations§
Source§impl GetTeamOnCallUsersOptionalParams
impl GetTeamOnCallUsersOptionalParams
Sourcepub fn include(self, value: String) -> Self
pub fn include(self, value: String) -> Self
Comma-separated list of included relationships to be returned. Allowed values: responders
, escalations
, escalations.responders
.
Examples found in repository?
examples/v2_on-call_GetTeamOnCallUsers.rs (line 16)
7async fn main() {
8 // there are valid "routing_rules" in the system
9 let routing_rules_data_id = std::env::var("ROUTING_RULES_DATA_ID").unwrap();
10 let configuration = datadog::Configuration::new();
11 let api = OnCallAPI::with_config(configuration);
12 let resp = api
13 .get_team_on_call_users(
14 routing_rules_data_id.clone(),
15 GetTeamOnCallUsersOptionalParams::default()
16 .include("responders,escalations.responders".to_string()),
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 GetTeamOnCallUsersOptionalParams
impl Clone for GetTeamOnCallUsersOptionalParams
Source§fn clone(&self) -> GetTeamOnCallUsersOptionalParams
fn clone(&self) -> GetTeamOnCallUsersOptionalParams
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 GetTeamOnCallUsersOptionalParams
impl Default for GetTeamOnCallUsersOptionalParams
Source§fn default() -> GetTeamOnCallUsersOptionalParams
fn default() -> GetTeamOnCallUsersOptionalParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetTeamOnCallUsersOptionalParams
impl RefUnwindSafe for GetTeamOnCallUsersOptionalParams
impl Send for GetTeamOnCallUsersOptionalParams
impl Sync for GetTeamOnCallUsersOptionalParams
impl Unpin for GetTeamOnCallUsersOptionalParams
impl UnwindSafe for GetTeamOnCallUsersOptionalParams
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