bitwarden_api_api/models/
security_task_status.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[repr(i64)]
#[derive(
Clone,
Copy,
Debug,
Eq,
PartialEq,
Ord,
PartialOrd,
Hash,
serde_repr::Serialize_repr,
serde_repr::Deserialize_repr,
)]
pub enum SecurityTaskStatus {
Pending = 0,
Completed = 1,
}
impl std::fmt::Display for SecurityTaskStatus {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Pending => write!(f, "0"),
Self::Completed => write!(f, "1"),
}
}
}
impl Default for SecurityTaskStatus {
fn default() -> SecurityTaskStatus {
Self::Pending
}
}