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 * The version of the OpenAPI document: 5.11.1
7 * Contact: devrel@onesignal.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// AuditLogTarget : A resource the action was performed on.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct AuditLogTarget {
17 /// UUID of the resource.
18 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19 pub id: Option<String>,
20 /// Additional resource-specific data.
21 #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
22 pub metadata: Option<serde_json::Value>,
23 /// Display name of the resource. Absent if unavailable.
24 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
25 pub name: Option<String>,
26 /// Resource type (e.g. notification, segment, journey, app).
27 #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
28 pub _type: Option<String>,
29}
30
31impl AuditLogTarget {
32 /// A resource the action was performed on.
33 pub fn new() -> AuditLogTarget {
34 AuditLogTarget {
35 id: None,
36 metadata: None,
37 name: None,
38 _type: None,
39 }
40 }
41}
42
43