#[non_exhaustive]pub struct GetOnCallEscalationPolicyOptionalParams {
pub include: Option<String>,
}
Expand description
GetOnCallEscalationPolicyOptionalParams is a struct for passing parameters to the method OnCallAPI::get_on_call_escalation_policy
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: teams
, steps
, steps.targets
.
Implementations§
Source§impl GetOnCallEscalationPolicyOptionalParams
impl GetOnCallEscalationPolicyOptionalParams
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: teams
, steps
, steps.targets
.
Examples found in repository?
examples/v2_on-call_GetOnCallEscalationPolicy.rs (line 15)
7async fn main() {
8 // there is a valid "escalation_policy" in the system
9 let escalation_policy_data_id = std::env::var("ESCALATION_POLICY_DATA_ID").unwrap();
10 let configuration = datadog::Configuration::new();
11 let api = OnCallAPI::with_config(configuration);
12 let resp = api
13 .get_on_call_escalation_policy(
14 escalation_policy_data_id.clone(),
15 GetOnCallEscalationPolicyOptionalParams::default().include("steps.targets".to_string()),
16 )
17 .await;
18 if let Ok(value) = resp {
19 println!("{:#?}", value);
20 } else {
21 println!("{:#?}", resp.unwrap_err());
22 }
23}
Trait Implementations§
Source§impl Clone for GetOnCallEscalationPolicyOptionalParams
impl Clone for GetOnCallEscalationPolicyOptionalParams
Source§fn clone(&self) -> GetOnCallEscalationPolicyOptionalParams
fn clone(&self) -> GetOnCallEscalationPolicyOptionalParams
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 GetOnCallEscalationPolicyOptionalParams
impl Default for GetOnCallEscalationPolicyOptionalParams
Source§fn default() -> GetOnCallEscalationPolicyOptionalParams
fn default() -> GetOnCallEscalationPolicyOptionalParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetOnCallEscalationPolicyOptionalParams
impl RefUnwindSafe for GetOnCallEscalationPolicyOptionalParams
impl Send for GetOnCallEscalationPolicyOptionalParams
impl Sync for GetOnCallEscalationPolicyOptionalParams
impl Unpin for GetOnCallEscalationPolicyOptionalParams
impl UnwindSafe for GetOnCallEscalationPolicyOptionalParams
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