pub struct CursorInfo {
pub user_id: String,
pub user_name: String,
pub document_id: String,
pub position: usize,
pub selection_start: Option<usize>,
pub selection_end: Option<usize>,
pub color: String,
}Expand description
Cursor information for a user.
Fields§
§user_id: String§user_name: String§document_id: String§position: usize§selection_start: Option<usize>§selection_end: Option<usize>§color: StringTrait Implementations§
Source§impl Clone for CursorInfo
impl Clone for CursorInfo
Source§fn clone(&self) -> CursorInfo
fn clone(&self) -> CursorInfo
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 CursorInfo
impl Debug for CursorInfo
Source§impl<'de> Deserialize<'de> for CursorInfo
impl<'de> Deserialize<'de> for CursorInfo
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
Auto Trait Implementations§
impl Freeze for CursorInfo
impl RefUnwindSafe for CursorInfo
impl Send for CursorInfo
impl Sync for CursorInfo
impl Unpin for CursorInfo
impl UnsafeUnpin for CursorInfo
impl UnwindSafe for CursorInfo
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