pub struct RemoteCursor {
pub user_id: String,
pub user_name: String,
pub x: f32,
pub y: f32,
pub color: String,
pub last_active: i64,
pub tool: Option<String>,
}Expand description
Remote user’s cursor position for collaborative editing.
Fields§
§user_id: StringUser ID of the cursor owner.
user_name: StringUser’s display name.
x: f32Cursor X position on canvas.
y: f32Cursor Y position on canvas.
color: StringUser’s assigned color (CSS color string).
last_active: i64Last activity timestamp (Unix epoch ms).
tool: Option<String>Currently selected tool.
Trait Implementations§
Source§impl Clone for RemoteCursor
impl Clone for RemoteCursor
Source§fn clone(&self) -> RemoteCursor
fn clone(&self) -> RemoteCursor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RemoteCursor
impl Debug for RemoteCursor
Source§impl<'de> Deserialize<'de> for RemoteCursor
impl<'de> Deserialize<'de> for RemoteCursor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RemoteCursor
impl PartialEq for RemoteCursor
Source§impl Serialize for RemoteCursor
impl Serialize for RemoteCursor
impl StructuralPartialEq for RemoteCursor
Auto Trait Implementations§
impl Freeze for RemoteCursor
impl RefUnwindSafe for RemoteCursor
impl Send for RemoteCursor
impl Sync for RemoteCursor
impl Unpin for RemoteCursor
impl UnsafeUnpin for RemoteCursor
impl UnwindSafe for RemoteCursor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more