pub struct Edit {
pub sf: Option<String>,
pub id: String,
pub from: usize,
pub to: usize,
pub text: String,
pub cursor: usize,
pub len: usize,
pub raw: Map<String, Value>,
}Expand description
edit: native editing replaced UTF-16 [from, to) with text.
Fields§
§sf: Option<String>The surface.
id: StringThe field.
from: usizeStart, UTF-16 units.
to: usizeEnd, UTF-16 units.
text: StringThe replacement.
cursor: usizeThe caret afterwards.
len: usizeThe length of the text Tern saw.
raw: Map<String, Value>The event as received.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Edit
impl<'de> Deserialize<'de> for Edit
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 StructuralPartialEq for Edit
Auto Trait Implementations§
impl Freeze for Edit
impl RefUnwindSafe for Edit
impl Send for Edit
impl Sync for Edit
impl Unpin for Edit
impl UnsafeUnpin for Edit
impl UnwindSafe for Edit
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