pub struct Match {
pub message: String,
pub short_message: String,
pub replacements: Vec<Replacement>,
pub offset: u64,
pub length: u64,
pub context: Context,
pub sentence: String,
}Expand description
Represents a single problem found.
Fields§
§message: StringProblem detailed explanation.
short_message: StringShort explanation, the type of a problem.
replacements: Vec<Replacement>All the replacement suggestions.
offset: u64Offset from the beginning of the passed text.
length: u64The length of the word causing the problem.
context: ContextThe context in which the problem was found.
sentence: StringThe whole sentence where the problem was found.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Match
impl<'de> Deserialize<'de> for Match
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 Match
impl RefUnwindSafe for Match
impl Send for Match
impl Sync for Match
impl Unpin for Match
impl UnsafeUnpin for Match
impl UnwindSafe for Match
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