Skip to main content

hanzo_client/models/
skill.rs

1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Skill {
16    /// Content is the SKILL.md body, markdown.
17    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
18    pub content: Option<String>,
19    /// CreatedAt is when the skill was last written, Unix seconds.
20    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
21    pub created_at: Option<i32>,
22    /// Description is the one-line summary discovery shows for the skill.
23    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
24    pub description: Option<String>,
25    /// ID is the skill's id within the org. It is DERIVED from Name, so writing the same name again revises that skill rather than adding another.
26    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
27    pub id: Option<String>,
28    /// Name is the skill's name: one lowercase path segment (a-z0-9, _ or -).
29    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
30    pub name: Option<String>,
31    /// Org is the org that authored the skill — the validated caller's, never a value the body supplied.
32    #[serde(rename = "org", skip_serializing_if = "Option::is_none")]
33    pub org: Option<String>,
34}
35
36impl Skill {
37    pub fn new() -> Skill {
38        Skill {
39            content: None,
40            created_at: None,
41            description: None,
42            id: None,
43            name: None,
44            org: None,
45        }
46    }
47}
48