Skip to main content

hanzo_client/models/
activity_row.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ActivityRow {
16    /// Action is one of created, updated, deleted.
17    #[serde(rename = "action", skip_serializing_if = "Option::is_none")]
18    pub action: Option<String>,
19    /// Actor is the email of the principal who made the change. Empty for a write by an in-process composer; a project key can never appear here, because evaluating flags is all a key may do.
20    #[serde(rename = "actor", skip_serializing_if = "Option::is_none")]
21    pub actor: Option<String>,
22    /// At is when the change was made, RFC 3339 UTC.
23    #[serde(rename = "at", skip_serializing_if = "Option::is_none")]
24    pub at: Option<String>,
25    /// Detail is free-form context about the change. Nothing writes it today, so it is absent from every row the store serves.
26    #[serde(rename = "detail", skip_serializing_if = "Option::is_none")]
27    pub detail: Option<String>,
28    /// ID is the log's own sequence number, rising with each entry. The log is served newest-first, which is this descending.
29    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
30    pub id: Option<i32>,
31    /// Key is the flag that changed. It survives a delete, so the log still names flags the definition store no longer holds.
32    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
33    pub key: Option<String>,
34}
35
36impl ActivityRow {
37    pub fn new() -> ActivityRow {
38        ActivityRow {
39            action: None,
40            actor: None,
41            at: None,
42            detail: None,
43            id: None,
44            key: None,
45        }
46    }
47}
48