onesignal_rust_api/models/audit_log_actor.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/// AuditLogActor : The user or service that performed the action. Absent if the actor is unknown.
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct AuditLogActor {
16 /// Email address of the actor. Absent if unavailable.
17 #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
18 pub email: Option<String>,
19 /// UUID of the actor.
20 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
21 pub id: Option<String>,
22 /// Additional actor-specific data.
23 #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
24 pub metadata: Option<serde_json::Value>,
25 /// Display name of the actor. Absent if unavailable.
26 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
27 pub name: Option<String>,
28 /// Actor type (e.g. member, api_key, system).
29 #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
30 pub _type: Option<String>,
31}
32
33impl AuditLogActor {
34 /// The user or service that performed the action. Absent if the actor is unknown.
35 pub fn new() -> AuditLogActor {
36 AuditLogActor {
37 email: None,
38 id: None,
39 metadata: None,
40 name: None,
41 _type: None,
42 }
43 }
44}
45
46