pub struct GridEvent {
pub name: String,
pub op: String,
pub row: u32,
pub col: u32,
pub to_row: Option<u32>,
pub to_col: Option<u32>,
pub rows: Option<u32>,
pub cols: Option<u32>,
pub value: Option<String>,
pub text: Option<String>,
}Expand description
Something the user did in a grid. op (also the event’s action) is edit (value typed
into row, col), select (the selection changed: to_row, to_col is the other
corner), window (the client wants the cells of rows × cols from row, col),
paste (text, tab-separated, at row, col) or clear (the cells to to_row,
to_col).
Fields§
§name: StringThe grid’s name.
op: String§row: u32§col: u32§to_row: Option<u32>§to_col: Option<u32>§rows: Option<u32>§cols: Option<u32>§value: Option<String>What was typed (always text; =… is a formula, the owner works it out).
text: Option<String>Pasted text.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GridEvent
impl<'de> Deserialize<'de> for GridEvent
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
impl Eq for GridEvent
impl StructuralPartialEq for GridEvent
Auto Trait Implementations§
impl Forget for GridEvent
impl Freeze for GridEvent
impl Move for GridEvent
impl RefUnwindSafe for GridEvent
impl Send for GridEvent
impl Sync for GridEvent
impl Unpin for GridEvent
impl UnsafeUnpin for GridEvent
impl UnwindSafe for GridEvent
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