antimatter_api 2.0.13

Interact with the Antimatter Cloud API
Documentation
/*
 * 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};

/// HookInvocation : The name and version of a hook that has been invoked on a capsule. 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct HookInvocation {
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "version")]
    pub version: String,
}

impl HookInvocation {
    /// The name and version of a hook that has been invoked on a capsule. 
    pub fn new(name: String, version: String) -> HookInvocation {
        HookInvocation {
            name,
            version,
        }
    }
}