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 RevokeResp {
    /// Links is each revoked row with its new status — retained, not deleted, so usage history and the audit trail survive the log-out.
    #[serde(rename = "links", skip_serializing_if = "Option::is_none")]
    pub links: Option<Vec<models::LinkView>>,
    /// Revoked is how many links this call revoked.
    #[serde(rename = "revoked", skip_serializing_if = "Option::is_none")]
    pub revoked: Option<i32>,
    /// SessionsStopped is how many of the caller's own agent sessions stopped. A stop that fails does not fail the revoke, so this may honestly report fewer.
    #[serde(rename = "sessionsStopped", skip_serializing_if = "Option::is_none")]
    pub sessions_stopped: Option<i32>,
}

impl RevokeResp {
    pub fn new() -> RevokeResp {
        RevokeResp {
            links: None,
            revoked: None,
            sessions_stopped: None,
        }
    }
}