Fix theseus lint
This commit is contained in:
parent
9cb1ad8024
commit
fadbf80093
@ -184,6 +184,7 @@ pub enum LoadingBarType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Clone)]
|
#[derive(Serialize, Clone)]
|
||||||
|
#[cfg(feature = "tauri")]
|
||||||
pub struct LoadingPayload {
|
pub struct LoadingPayload {
|
||||||
pub event: LoadingBarType,
|
pub event: LoadingBarType,
|
||||||
pub loader_uuid: Uuid,
|
pub loader_uuid: Uuid,
|
||||||
@ -192,6 +193,7 @@ pub struct LoadingPayload {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Clone)]
|
#[derive(Serialize, Clone)]
|
||||||
|
#[cfg(feature = "tauri")]
|
||||||
pub struct WarningPayload {
|
pub struct WarningPayload {
|
||||||
pub message: String,
|
pub message: String,
|
||||||
}
|
}
|
||||||
@ -215,12 +217,14 @@ pub enum CommandPayload {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Clone)]
|
#[derive(Serialize, Clone)]
|
||||||
|
#[cfg(feature = "tauri")]
|
||||||
pub struct ProcessPayload {
|
pub struct ProcessPayload {
|
||||||
pub profile_path_id: String,
|
pub profile_path_id: String,
|
||||||
pub uuid: Uuid,
|
pub uuid: Uuid,
|
||||||
pub event: ProcessPayloadType,
|
pub event: ProcessPayloadType,
|
||||||
pub message: String,
|
pub message: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Clone, Debug)]
|
#[derive(Serialize, Clone, Debug)]
|
||||||
#[serde(rename_all = "snake_case")]
|
#[serde(rename_all = "snake_case")]
|
||||||
pub enum ProcessPayloadType {
|
pub enum ProcessPayloadType {
|
||||||
@ -229,11 +233,13 @@ pub enum ProcessPayloadType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Clone)]
|
#[derive(Serialize, Clone)]
|
||||||
|
#[cfg(feature = "tauri")]
|
||||||
pub struct ProfilePayload {
|
pub struct ProfilePayload {
|
||||||
pub profile_path_id: String,
|
pub profile_path_id: String,
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
pub event: ProfilePayloadType,
|
pub event: ProfilePayloadType,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Clone)]
|
#[derive(Serialize, Clone)]
|
||||||
#[serde(tag = "event", rename_all = "snake_case")]
|
#[serde(tag = "event", rename_all = "snake_case")]
|
||||||
pub enum ProfilePayloadType {
|
pub enum ProfilePayloadType {
|
||||||
@ -252,6 +258,16 @@ pub enum ProfilePayloadType {
|
|||||||
Removed,
|
Removed,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Serialize, Clone)]
|
||||||
|
#[serde(rename_all = "snake_case")]
|
||||||
|
#[serde(tag = "event")]
|
||||||
|
pub enum FriendPayload {
|
||||||
|
FriendRequest { from: UserId },
|
||||||
|
UserOffline { id: UserId },
|
||||||
|
StatusUpdate { user_status: UserStatus },
|
||||||
|
StatusSync,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug, thiserror::Error)]
|
#[derive(Debug, thiserror::Error)]
|
||||||
pub enum EventError {
|
pub enum EventError {
|
||||||
#[error("Event state was not properly initialized")]
|
#[error("Event state was not properly initialized")]
|
||||||
@ -264,13 +280,3 @@ pub enum EventError {
|
|||||||
#[error("Tauri error: {0}")]
|
#[error("Tauri error: {0}")]
|
||||||
TauriError(#[from] tauri::Error),
|
TauriError(#[from] tauri::Error),
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Clone)]
|
|
||||||
#[serde(rename_all = "snake_case")]
|
|
||||||
#[serde(tag = "event")]
|
|
||||||
pub enum FriendPayload {
|
|
||||||
FriendRequest { from: UserId },
|
|
||||||
UserOffline { id: UserId },
|
|
||||||
StatusUpdate { user_status: UserStatus },
|
|
||||||
StatusSync,
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user