1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* 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 TrustAskView {
/// CreatedAt is when the ask arrived, in unix milliseconds.
#[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
pub created_at: Option<i32>,
/// DecidedAt is when it was answered, in unix milliseconds; 0 while open.
#[serde(rename = "decidedAt", skip_serializing_if = "Option::is_none")]
pub decided_at: Option<i32>,
/// DecidedBy is who answered it.
#[serde(rename = "decidedBy", skip_serializing_if = "Option::is_none")]
pub decided_by: Option<String>,
/// Email is the address that asked, as stated and UNVERIFIED — it names a party and proves nothing, which is why the grant is addressed to it rather than trusting it.
#[serde(rename = "email", skip_serializing_if = "Option::is_none")]
pub email: Option<String>,
/// ExpiresAt is when a granted ask closes, in unix milliseconds.
#[serde(rename = "expiresAt", skip_serializing_if = "Option::is_none")]
pub expires_at: Option<i32>,
/// ID is the request's id.
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Item is the item asked for, empty when the whole released tier was asked for.
#[serde(rename = "item", skip_serializing_if = "Option::is_none")]
pub item: Option<String>,
/// Link is the share link a granted ask became.
#[serde(rename = "link", skip_serializing_if = "Option::is_none")]
pub link: Option<String>,
/// Nda is the text this party accepted, verbatim as it stood when they accepted.
#[serde(rename = "nda", skip_serializing_if = "Option::is_none")]
pub nda: Option<String>,
/// Note is what the decider wrote when refusing.
#[serde(rename = "note", skip_serializing_if = "Option::is_none")]
pub note: Option<String>,
/// Party is the company the asker stated.
#[serde(rename = "party", skip_serializing_if = "Option::is_none")]
pub party: Option<String>,
/// Reason is why they said they want it.
#[serde(rename = "reason", skip_serializing_if = "Option::is_none")]
pub reason: Option<String>,
/// State is open, granted or refused.
#[serde(rename = "state", skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
}
impl TrustAskView {
pub fn new() -> TrustAskView {
TrustAskView {
created_at: None,
decided_at: None,
decided_by: None,
email: None,
expires_at: None,
id: None,
item: None,
link: None,
nda: None,
note: None,
party: None,
reason: None,
state: None,
}
}
}