Skip to main content

hanzo_client/models/
graph_node.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 GraphNode {
16    /// \"<doctype>:<name>\" — globally unique, click-to-open key
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<String>,
19    /// the document name (empty for synthetic nodes)
20    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21    pub name: Option<String>,
22    /// Project is the project scope the underlying document was saved under. Absent for a document saved with none, and for the synthetic nodes — unresolved link targets and connectors belong to no project. When ?project= narrows the graph, every page, memory and source node carries that value.
23    #[serde(rename = "project", skip_serializing_if = "Option::is_none")]
24    pub project: Option<String>,
25    /// display label
26    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
27    pub title: Option<String>,
28    /// kb-page | kb-memory | kb-source | kb-connector | unresolved
29    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
30    pub r#type: Option<String>,
31}
32
33impl GraphNode {
34    pub fn new() -> GraphNode {
35        GraphNode {
36            id: None,
37            name: None,
38            project: None,
39            title: None,
40            r#type: None,
41        }
42    }
43}
44