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    /// An opaque cryptographic invite. The server only stores and transports it, so its format is
18    /// not validated here.
19    #[serde(rename = "invite", alias = "Invite")]
20    pub invite: String,
21    /// Whether this invite link can be used to confirm a user.
22    #[serde(rename = "supportsConfirmation", alias = "SupportsConfirmation")]
23    pub supports_confirmation: bool,
24}
25
26impl RefreshOrganizationInviteLinkRequestModel {
27    pub fn new(
28        invite: String,
29        supports_confirmation: bool,
30    ) -> RefreshOrganizationInviteLinkRequestModel {
31        RefreshOrganizationInviteLinkRequestModel {
32            invite,
33            supports_confirmation,
34        }
35    }
36}