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    /// The rule these collections were assessed against.
26    #[serde(
27        rename = "ruleId",
28        alias = "RuleId",
29        skip_serializing_if = "Option::is_none"
30    )]
31    pub rule_id: Option<uuid::Uuid>,
32    /// The collections through which this rule's ciphers are reachable without a lease. Empty
33    /// means the rule protects everything it governs.
34    #[serde(
35        rename = "ungatedCollectionIds",
36        alias = "UngatedCollectionIds",
37        skip_serializing_if = "Option::is_none"
38    )]
39    pub ungated_collection_ids: Option<Vec<uuid::Uuid>>,
40}
41
42impl RuleBypassableCiphersResponseModel {
43    /// Where an access rule fails to gate: the collections letting the ciphers it governs through
44    /// without a lease.
45    pub fn new() -> RuleBypassableCiphersResponseModel {
46        RuleBypassableCiphersResponseModel {
47            object: None,
48            rule_id: None,
49            ungated_collection_ids: None,
50        }
51    }
52}