cleaned up unused rust types
This commit is contained in:
@@ -12,10 +12,7 @@ use crate::{
|
|||||||
},
|
},
|
||||||
interaction::{InteractionDeliveryFailedDto, InteractionPayloadDto},
|
interaction::{InteractionDeliveryFailedDto, InteractionPayloadDto},
|
||||||
},
|
},
|
||||||
services::{
|
services::{cursor::CursorPositions, friend_cursor::FriendCursorPositionsDto},
|
||||||
cursor::CursorPositions, friend_cursor::FriendCursorPositionsDto,
|
|
||||||
ws::OutgoingFriendCursorPayload,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize, Type, Event)]
|
#[derive(Debug, Clone, Serialize, Deserialize, Type, Event)]
|
||||||
@@ -50,10 +47,6 @@ pub struct CreateDoll;
|
|||||||
#[tauri_specta(event_name = "user-status-changed")]
|
#[tauri_specta(event_name = "user-status-changed")]
|
||||||
pub struct UserStatusChanged(pub UserStatusPayload);
|
pub struct UserStatusChanged(pub UserStatusPayload);
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize, Type, Event)]
|
|
||||||
#[tauri_specta(event_name = "friend-cursor-position")]
|
|
||||||
pub struct FriendCursorPositionUpdated(pub OutgoingFriendCursorPayload);
|
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize, Type, Event)]
|
#[derive(Debug, Clone, Serialize, Deserialize, Type, Event)]
|
||||||
#[tauri_specta(event_name = "friend-cursor-positions")]
|
#[tauri_specta(event_name = "friend-cursor-positions")]
|
||||||
pub struct FriendCursorPositionsUpdated(pub FriendCursorPositionsDto);
|
pub struct FriendCursorPositionsUpdated(pub FriendCursorPositionsDto);
|
||||||
|
|||||||
@@ -29,5 +29,4 @@ pub mod client;
|
|||||||
// Re-export public API
|
// Re-export public API
|
||||||
pub use cursor::report_cursor_data;
|
pub use cursor::report_cursor_data;
|
||||||
pub use emitter::ws_emit_soft;
|
pub use emitter::ws_emit_soft;
|
||||||
pub use types::OutgoingFriendCursorPayload;
|
|
||||||
pub use types::WS_EVENT;
|
pub use types::WS_EVENT;
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
use serde::{Deserialize, Serialize};
|
use serde::Deserialize;
|
||||||
use specta::Type;
|
|
||||||
|
|
||||||
/// WebSocket event constants
|
/// WebSocket event constants
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
@@ -36,11 +35,3 @@ pub struct IncomingFriendCursorPayload {
|
|||||||
pub user_id: String,
|
pub user_id: String,
|
||||||
pub position: crate::services::cursor::CursorPosition,
|
pub position: crate::services::cursor::CursorPosition,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Outgoing friend cursor position to frontend
|
|
||||||
#[derive(Clone, Debug, Serialize, Deserialize, Type)]
|
|
||||||
#[serde(rename_all = "camelCase")]
|
|
||||||
pub struct OutgoingFriendCursorPayload {
|
|
||||||
pub user_id: String,
|
|
||||||
pub position: crate::services::cursor::CursorPositions,
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user