bitwarden_api_api/models/
integration_type.rs1use serde::{Deserialize, Serialize};
12use serde_repr::{Deserialize_repr, Serialize_repr};
13
14use crate::models;
15#[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}
27
28impl std::fmt::Display for IntegrationType {
29 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
30 write!(
31 f,
32 "{}",
33 match self {
34 Self::CloudBillingSync => "1",
35 Self::Scim => "2",
36 Self::Slack => "3",
37 Self::Webhook => "4",
38 Self::Hec => "5",
39 }
40 )
41 }
42}
43impl Default for IntegrationType {
44 fn default() -> IntegrationType {
45 Self::CloudBillingSync
46 }
47}