opsgenie_rs/models/
add_team_to_alert_payload.rs

1/*
2 * Python SDK for Opsgenie REST API
3 *
4 * Python SDK for Opsgenie REST API
5 *
6 * The version of the OpenAPI document: 2.0.0
7 * Contact: support@opsgenie.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AddTeamToAlertPayload {
16    /// Display name of the request owner
17    #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
18    pub user: Option<String>,
19    /// Additional note that will be added while creating the alert
20    #[serde(rename = "note", skip_serializing_if = "Option::is_none")]
21    pub note: Option<String>,
22    /// Source field of the alert. Default value is IP address of the incoming request
23    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
24    pub source: Option<String>,
25    #[serde(rename = "team")]
26    pub team: crate::models::TeamRecipient,
27}
28
29impl AddTeamToAlertPayload {
30    pub fn new(team: crate::models::TeamRecipient) -> AddTeamToAlertPayload {
31        AddTeamToAlertPayload {
32            user: None,
33            note: None,
34            source: None,
35            team,
36        }
37    }
38}
39
40