Skip to main content

bitwarden_api_api/models/
access_request_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/// AccessRequestRevokeRequestModel : A request to revoke an access request that has not been
16/// activated.
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
18pub struct AccessRequestRevokeRequestModel {
19    /// Why the request is being revoked. Required when a managing approver revokes; recorded with
20    /// their decision and surfaced to the requester.
21    #[serde(
22        rename = "reason",
23        alias = "Reason",
24        skip_serializing_if = "Option::is_none"
25    )]
26    pub reason: Option<String>,
27}
28
29impl AccessRequestRevokeRequestModel {
30    /// A request to revoke an access request that has not been activated.
31    pub fn new() -> AccessRequestRevokeRequestModel {
32        AccessRequestRevokeRequestModel { reason: None }
33    }
34}