vrc 0.5.0

Unofficial rust types of VRChat's API
Documentation
//! Models of the API responses to queries.

// Can't do much about API types
#![allow(clippy::struct_excessive_bools)]
// Re-exporting the module contents from this module,
// so it makes sense to add pre/postfixes to the names
#![allow(clippy::module_name_repetitions)]

mod assets;
pub use assets::*;
mod auth;
pub use auth::*;
mod groups;
pub use groups::*;
mod instances;
pub use instances::*;
mod notifications;
//pub use notifications::*;
mod users;
use serde::{Deserialize, Serialize};
pub use users::*;

/// A generic success status response
#[derive(Debug, Clone, PartialEq, Eq, Hash, Deserialize, Serialize)]
pub struct SuccessResponse {
	message: String,
	status_code: u16,
}

/// A very generic response to some operations
#[derive(Debug, Clone, PartialEq, Eq, Hash, Deserialize, Serialize)]
pub enum StatusResponse {
	/// The operation was successful
	Success(SuccessResponse),
}