bitwarden_api_api/models/
file_upload_type.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 FileUploadType {
Direct = 0,
Azure = 1,
}
impl std::fmt::Display for FileUploadType {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Direct => write!(f, "0"),
Self::Azure => write!(f, "1"),
}
}
}
impl Default for FileUploadType {
fn default() -> FileUploadType {
Self::Direct
}
}