/*
* 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 Claim {
/// Created reports whether this call recorded a new claim (201) or found an existing one (200).
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
pub created: Option<bool>,
/// Org is the verified owner-wide claim, present when an owner was claimed. It covers every repository the author publishes under that owner.
#[serde(rename = "org", skip_serializing_if = "Option::is_none")]
pub org: Option<Box<models::OrgView>>,
/// Repo is the verified repository claim, present when a repository was claimed.
#[serde(rename = "repo", skip_serializing_if = "Option::is_none")]
pub repo: Option<Box<models::AuthorRepo>>,
}
impl Claim {
pub fn new() -> Claim {
Claim {
created: None,
org: None,
repo: None,
}
}
}