chore(renamed): removed froxy prefix on folders
This commit is contained in:
parent
e57bb34a35
commit
6960959794
29 changed files with 32 additions and 12 deletions
|
|
@ -1,117 +0,0 @@
|
|||
use smol_str::SmolStr;
|
||||
|
||||
#[non_exhaustive]
|
||||
#[derive(Debug, Clone, Default, Eq, PartialEq)]
|
||||
pub enum ClusterLocationStatus {
|
||||
#[doc(alias = "red")]
|
||||
Dead,
|
||||
#[doc(alias = "orange")]
|
||||
Damaged,
|
||||
#[doc(alias = "good")]
|
||||
#[default]
|
||||
Ok,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub enum Relation {
|
||||
CloseFriend,
|
||||
Friend,
|
||||
Pooled,
|
||||
Me,
|
||||
Focus,
|
||||
#[default]
|
||||
None,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub enum ClusterLocationData {
|
||||
User {
|
||||
login: smol_str::SmolStr,
|
||||
image: Option<url::Url>,
|
||||
relation: Relation,
|
||||
},
|
||||
Normal {
|
||||
status: ClusterLocationStatus,
|
||||
},
|
||||
#[default]
|
||||
Empty,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct ClusterLocation {
|
||||
pub location: smol_str::SmolStr,
|
||||
pub data: ClusterLocationData,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct CluserInformation {
|
||||
pub cluster_name: smol_str::SmolStr,
|
||||
pub locations: Vec<ClusterLocation>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Friend {
|
||||
pub login: SmolStr,
|
||||
pub image: Option<String>,
|
||||
pub position: Option<SmolStr>,
|
||||
pub last_active: Option<SmolStr>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Friends {
|
||||
pub friends: Vec<Friend>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Deserialize, serde::Serialize)]
|
||||
#[serde(untagged)]
|
||||
pub(crate) enum IsFriend {
|
||||
U32(u32),
|
||||
Bool(bool),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Deserialize, serde::Serialize)]
|
||||
pub(crate) struct ProfileRaw {
|
||||
pub(crate) admin: bool,
|
||||
pub(crate) active: Option<SmolStr>,
|
||||
pub(crate) campus: u64,
|
||||
pub(crate) id: u64,
|
||||
pub(crate) userid: Option<u64>,
|
||||
pub(crate) image: String,
|
||||
pub(crate) image_medium: String,
|
||||
pub(crate) is_friend: IsFriend,
|
||||
pub(crate) lang: SmolStr,
|
||||
pub(crate) name: SmolStr,
|
||||
pub(crate) pool: Option<SmolStr>,
|
||||
pub(crate) position: Option<SmolStr>,
|
||||
|
||||
pub(crate) recit: Option<String>,
|
||||
pub(crate) website: Option<String>,
|
||||
pub(crate) discord: Option<String>,
|
||||
pub(crate) github: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Deserialize, serde::Serialize)]
|
||||
pub struct Profile {
|
||||
pub admin: bool,
|
||||
|
||||
pub campus: u64,
|
||||
pub id: u64,
|
||||
pub userid: Option<u64>,
|
||||
pub pool: Option<SmolStr>,
|
||||
|
||||
pub image: String,
|
||||
pub image_medium: String,
|
||||
|
||||
pub is_friend: bool,
|
||||
|
||||
pub lang: SmolStr,
|
||||
pub name: SmolStr,
|
||||
|
||||
pub position: Option<SmolStr>,
|
||||
pub active: Option<SmolStr>,
|
||||
|
||||
pub website: Option<String>,
|
||||
pub recit: Option<String>,
|
||||
pub discord: Option<String>,
|
||||
pub github: Option<String>,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue