Skip to main content

hanzo_client/models/
collab_request.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 CollabRequest {
16    /// DocumentID addresses the document field, as \"<workspaceUuid>|<objectClass>|<objectId>|<objectAttr>\" — the collaborator-client encodeDocumentId shape, from the path.
17    #[serde(rename = "documentId", skip_serializing_if = "Option::is_none")]
18    pub document_id: Option<String>,
19    /// Method is the verb: createContent, updateContent or getContent.
20    #[serde(rename = "method", skip_serializing_if = "Option::is_none")]
21    pub method: Option<String>,
22    /// Payload is the verb's argument.
23    #[serde(rename = "payload", skip_serializing_if = "Option::is_none")]
24    pub payload: Option<Box<models::CollabPayload>>,
25}
26
27impl CollabRequest {
28    pub fn new() -> CollabRequest {
29        CollabRequest {
30            document_id: None,
31            method: None,
32            payload: None,
33        }
34    }
35}
36