hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * Hanzo Cloud API
 *
 * 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/.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ActivityRow {
    /// Action is one of created, updated, deleted.
    #[serde(rename = "action", skip_serializing_if = "Option::is_none")]
    pub action: Option<String>,
    /// 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.
    #[serde(rename = "actor", skip_serializing_if = "Option::is_none")]
    pub actor: Option<String>,
    /// At is when the change was made, RFC 3339 UTC.
    #[serde(rename = "at", skip_serializing_if = "Option::is_none")]
    pub at: Option<String>,
    /// Detail is free-form context about the change. Nothing writes it today, so it is absent from every row the store serves.
    #[serde(rename = "detail", skip_serializing_if = "Option::is_none")]
    pub detail: Option<String>,
    /// ID is the log's own sequence number, rising with each entry. The log is served newest-first, which is this descending.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    /// Key is the flag that changed. It survives a delete, so the log still names flags the definition store no longer holds.
    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
    pub key: Option<String>,
}

impl ActivityRow {
    pub fn new() -> ActivityRow {
        ActivityRow {
            action: None,
            actor: None,
            at: None,
            detail: None,
            id: None,
            key: None,
        }
    }
}