Skip to main content

hanzo_client/models/
graph_resolve_in.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 GraphResolveIn {
16    /// AsOf is the instant to answer at, RFC 3339. Absent means now.
17    #[serde(rename = "as_of", skip_serializing_if = "Option::is_none")]
18    pub as_of: Option<String>,
19    /// Entity is the thing to answer about. Required.
20    #[serde(rename = "entity", skip_serializing_if = "Option::is_none")]
21    pub entity: Option<String>,
22    /// Relation is the one relation to settle. Required: this answers a single (entity, relation) pair, never a whole entity at once.
23    #[serde(rename = "relation", skip_serializing_if = "Option::is_none")]
24    pub relation: Option<String>,
25}
26
27impl GraphResolveIn {
28    pub fn new() -> GraphResolveIn {
29        GraphResolveIn {
30            as_of: None,
31            entity: None,
32            relation: None,
33        }
34    }
35}
36