1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* Antimatter Public API
*
* Interact with the Antimatter Cloud API
*
* The version of the OpenAPI document: 2.0.13
* Contact: support@antimatter.io
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// DomainControlLogEntry : Results for a domain control log query
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DomainControlLogEntry {
/// A globally unique identifier for a domain
#[serde(rename = "domain")]
pub domain: String,
/// A globally unique chronological identifier for a log record. If you sort by this identifier, your logs will be in chronological order
#[serde(rename = "id")]
pub id: String,
/// the time of an operation, in UTC
#[serde(rename = "time")]
pub time: String,
/// An identifier for an authentication session
#[serde(rename = "session")]
pub session: String,
#[serde(rename = "url")]
pub url: String,
#[serde(rename = "summary")]
pub summary: String,
#[serde(rename = "description")]
pub description: std::collections::HashMap<String, String>,
/// the principal's issuer
#[serde(rename = "issuer")]
pub issuer: String,
/// the principal for this operation
#[serde(rename = "principal")]
pub principal: String,
}
impl DomainControlLogEntry {
/// Results for a domain control log query
pub fn new(domain: String, id: String, time: String, session: String, url: String, summary: String, description: std::collections::HashMap<String, String>, issuer: String, principal: String) -> DomainControlLogEntry {
DomainControlLogEntry {
domain,
id,
time,
session,
url,
summary,
description,
issuer,
principal,
}
}
}