immich_api_rs 1.137.3

Immich API
Documentation
/*
 * Immich
 *
 * Immich API
 *
 * The version of the OpenAPI document: 1.137.3
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UserLicense {
    #[serde(rename = "activatedAt")]
    pub activated_at: String,
    #[serde(rename = "activationKey")]
    pub activation_key: String,
    #[serde(rename = "licenseKey")]
    pub license_key: String,
}

impl UserLicense {
    pub fn new(activated_at: String, activation_key: String, license_key: String) -> UserLicense {
        UserLicense {
            activated_at,
            activation_key,
            license_key,
        }
    }
}