mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
12 lines
368 B
Rust
12 lines
368 B
Rust
#[derive(Serialize, Deserialize)]
|
|
#[serde(untagged)]
|
|
pub enum EitherUserOrTwoFactor{
|
|
CurrentUser(CurrentUser),
|
|
RequiresTwoFactorAuth(RequiresTwoFactorAuth),
|
|
}
|
|
|
|
#[derive(Clone, Debug, PartialEq, Eq, Default, Serialize, Deserialize)]
|
|
pub struct RequiresTwoFactorAuth{
|
|
#[serde(rename = "requiresTwoFactorAuth")]
|
|
pub requires_two_factor_auth: Vec<String>
|
|
} |