Skip to main content

bitwarden_api_api/models/
rule_bypassable_ciphers_response_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/// RuleBypassableCiphersResponseModel : Where an access rule fails to gate: the collections letting
16/// the ciphers it governs through without a lease.
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
18pub struct RuleBypassableCiphersResponseModel {
19    #[serde(
20        rename = "object",
21        alias = "Object",
22        skip_serializing_if = "Option::is_none"
23    )]
24    pub object: Option<String>,
25    #[serde(
26        rename = "ruleId",
27        alias = "RuleId",
28        skip_serializing_if = "Option::is_none"
29    )]
30    pub rule_id: Option<uuid::Uuid>,
31    /// The collections through which this rule's ciphers are reachable without a lease. Empty when
32    /// the rule protects everything it governs, is disabled, or is not in this organization.
33    #[serde(
34        rename = "ungatedCollectionIds",
35        alias = "UngatedCollectionIds",
36        skip_serializing_if = "Option::is_none"
37    )]
38    pub ungated_collection_ids: Option<Vec<uuid::Uuid>>,
39}
40
41impl RuleBypassableCiphersResponseModel {
42    /// Where an access rule fails to gate: the collections letting the ciphers it governs through
43    /// without a lease.
44    pub fn new() -> RuleBypassableCiphersResponseModel {
45        RuleBypassableCiphersResponseModel {
46            object: None,
47            rule_id: None,
48            ungated_collection_ids: None,
49        }
50    }
51}