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 /// A note explaining the revocation. Recorded on the audit trail; not surfaced on the lease
19 /// itself.
20 #[serde(
21 rename = "reason",
22 alias = "Reason",
23 skip_serializing_if = "Option::is_none"
24 )]
25 pub reason: Option<String>,
26}
27
28impl AccessLeaseRevokeRequestModel {
29 /// A request to revoke an active lease early.
30 pub fn new() -> AccessLeaseRevokeRequestModel {
31 AccessLeaseRevokeRequestModel { reason: None }
32 }
33}