Skip to main content

onesignal_rust_api/models/
audit_log_target.rs

1/*
2 * OneSignal
3 *
4 * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5 *
6 * Contact: devrel@onesignal.com
7 * Generated by: https://openapi-generator.tech
8 */
9
10/// AuditLogTarget : A resource the action was performed on.
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct AuditLogTarget {
16    /// UUID of the resource.
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<String>,
19    /// Additional resource-specific data.
20    #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
21    pub metadata: Option<serde_json::Value>,
22    /// Display name of the resource. Absent if unavailable.
23    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
24    pub name: Option<String>,
25    /// Resource type (e.g. notification, segment, journey, app).
26    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
27    pub _type: Option<String>,
28}
29
30impl AuditLogTarget {
31    /// A resource the action was performed on.
32    pub fn new() -> AuditLogTarget {
33        AuditLogTarget {
34            id: None,
35            metadata: None,
36            name: None,
37            _type: None,
38        }
39    }
40}
41
42