bitwarden_api_api/models/
security_task_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 SecurityTaskStatus {
21    Pending = 0,
22    Completed = 1,
23}
24
25impl std::fmt::Display for SecurityTaskStatus {
26    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
27        write!(
28            f,
29            "{}",
30            match self {
31                Self::Pending => "0",
32                Self::Completed => "1",
33            }
34        )
35    }
36}
37impl Default for SecurityTaskStatus {
38    fn default() -> SecurityTaskStatus {
39        Self::Pending
40    }
41}