Skip to main content

bitwarden_api_api/models/
refresh_organization_invite_link_request_model.rs

1/*
2 * Bitwarden Internal API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: latest
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RefreshOrganizationInviteLinkRequestModel {
17    /// The invite key encrypted with the organization key.
18    #[serde(rename = "encryptedInviteKey", alias = "EncryptedInviteKey")]
19    pub encrypted_invite_key: String,
20    /// The organization key encrypted for the invite link. Currently unused; will be populated in
21    /// a future stage.
22    #[serde(
23        rename = "encryptedOrgKey",
24        alias = "EncryptedOrgKey",
25        skip_serializing_if = "Option::is_none"
26    )]
27    pub encrypted_org_key: Option<String>,
28}
29
30impl RefreshOrganizationInviteLinkRequestModel {
31    pub fn new(encrypted_invite_key: String) -> RefreshOrganizationInviteLinkRequestModel {
32        RefreshOrganizationInviteLinkRequestModel {
33            encrypted_invite_key,
34            encrypted_org_key: None,
35        }
36    }
37}