pub struct ReviewRequest {
pub original: String,
pub corrected: String,
pub trailing: String,
pub chars_before_caret: usize,
pub chars_after_caret: usize,
pub window_address: String,
}Expand description
A pending review request — what the user typed, what the smart provider suggested, and where to emit the result.
Fields§
§original: StringThe sentence as it sits in the focused window’s buffer.
corrected: StringThe smart provider’s proposed correction.
trailing: StringWhitespace between the sentence’s right edge and the caret — preserved so the emit lands with the user’s spacing intact.
chars_before_caret: usizeHow many characters of original sit BEFORE the caret —
determines the BackSpace count when the apply path emits.
chars_after_caret: usizeHow many characters of original sit AFTER the caret —
determines the Delete count when the apply path emits.
Zero for the common case where the caret is at the end of
(or in trailing whitespace after) the sentence.
window_address: StringHyprland address of the window the request originated from — the daemon uses it to update that window’s buffer when the user accepts.
Trait Implementations§
Source§impl Clone for ReviewRequest
impl Clone for ReviewRequest
Source§fn clone(&self) -> ReviewRequest
fn clone(&self) -> ReviewRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more