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