Skip to main content

bitwarden_api_api/models/
access_lease_revoke_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/// AccessLeaseRevokeRequestModel : A request to revoke an active lease early.
16#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
17pub struct AccessLeaseRevokeRequestModel {
18    /// Recorded on the audit trail; not surfaced on the lease itself.
19    #[serde(
20        rename = "reason",
21        alias = "Reason",
22        skip_serializing_if = "Option::is_none"
23    )]
24    pub reason: Option<String>,
25}
26
27impl AccessLeaseRevokeRequestModel {
28    /// A request to revoke an active lease early.
29    pub fn new() -> AccessLeaseRevokeRequestModel {
30        AccessLeaseRevokeRequestModel { reason: None }
31    }
32}