bitwarden_api_api/models/
organization_integration_status.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};
12use serde_repr::{Deserialize_repr, Serialize_repr};
13
14use crate::models;
15///
16#[repr(i64)]
17#[derive(
18    Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize_repr, Deserialize_repr,
19)]
20pub enum OrganizationIntegrationStatus {
21    NotApplicable = 0,
22    Invalid = 1,
23    Initiated = 2,
24    InProgress = 3,
25    Completed = 4,
26}
27
28impl std::fmt::Display for OrganizationIntegrationStatus {
29    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
30        write!(
31            f,
32            "{}",
33            match self {
34                Self::NotApplicable => "0",
35                Self::Invalid => "1",
36                Self::Initiated => "2",
37                Self::InProgress => "3",
38                Self::Completed => "4",
39            }
40        )
41    }
42}
43impl Default for OrganizationIntegrationStatus {
44    fn default() -> OrganizationIntegrationStatus {
45        Self::NotApplicable
46    }
47}