Skip to main content

hanzo_client/models/
dataroom_link_create.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 DataroomLinkCreate {
16    #[serde(rename = "allowDownload", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17    pub allow_download: Option<Option<serde_json::Value>>,
18    /// AllowList narrows which addresses pass the email gate. Optional; an entry may be a full address (\"ada@example.com\"), an \"@domain.com\" suffix, or a bare \"domain.com\". An omitted or EMPTY list admits everyone, so a link with no list enforces the email gate alone.
19    #[serde(rename = "allowList", skip_serializing_if = "Option::is_none")]
20    pub allow_list: Option<Vec<serde_json::Value>>,
21    #[serde(rename = "dataroomId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
22    pub dataroom_id: Option<Option<serde_json::Value>>,
23    /// DenyList rejects addresses, in the same three forms as the allow list. Optional. It is checked BEFORE the allow list, so deny always wins.
24    #[serde(rename = "denyList", skip_serializing_if = "Option::is_none")]
25    pub deny_list: Option<Vec<serde_json::Value>>,
26    #[serde(rename = "documentId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
27    pub document_id: Option<Option<serde_json::Value>>,
28    #[serde(rename = "emailProtected", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
29    pub email_protected: Option<Option<serde_json::Value>>,
30    #[serde(rename = "expiresAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
31    pub expires_at: Option<Option<serde_json::Value>>,
32    #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
33    pub name: Option<Option<serde_json::Value>>,
34    #[serde(rename = "password", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
35    pub password: Option<Option<serde_json::Value>>,
36}
37
38impl DataroomLinkCreate {
39    pub fn new() -> DataroomLinkCreate {
40        DataroomLinkCreate {
41            allow_download: None,
42            allow_list: None,
43            dataroom_id: None,
44            deny_list: None,
45            document_id: None,
46            email_protected: None,
47            expires_at: None,
48            name: None,
49            password: None,
50        }
51    }
52}
53