bitwarden_api_api/models/
integration_type.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 IntegrationType {
21    CloudBillingSync = 1,
22    Scim = 2,
23    Slack = 3,
24    Webhook = 4,
25    Hec = 5,
26    Datadog = 6,
27}
28
29impl std::fmt::Display for IntegrationType {
30    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31        write!(
32            f,
33            "{}",
34            match self {
35                Self::CloudBillingSync => "1",
36                Self::Scim => "2",
37                Self::Slack => "3",
38                Self::Webhook => "4",
39                Self::Hec => "5",
40                Self::Datadog => "6",
41            }
42        )
43    }
44}
45impl Default for IntegrationType {
46    fn default() -> IntegrationType {
47        Self::CloudBillingSync
48    }
49}