pub struct JsonSuggestion {
pub message: String,
pub replacement: Option<String>,
pub span: Option<JsonSpan>,
pub applicability: JsonApplicability,
}Expand description
A suggested fix in JSON format.
Fields§
§message: StringThe suggestion message.
replacement: Option<String>The replacement text.
span: Option<JsonSpan>The span to replace.
applicability: JsonApplicabilityHow applicable this suggestion is.
Trait Implementations§
Source§impl Clone for JsonSuggestion
impl Clone for JsonSuggestion
Source§fn clone(&self) -> JsonSuggestion
fn clone(&self) -> JsonSuggestion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JsonSuggestion
impl Debug for JsonSuggestion
Source§impl<'de> Deserialize<'de> for JsonSuggestion
impl<'de> Deserialize<'de> for JsonSuggestion
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 JsonSuggestion
impl RefUnwindSafe for JsonSuggestion
impl Send for JsonSuggestion
impl Sync for JsonSuggestion
impl Unpin for JsonSuggestion
impl UnsafeUnpin for JsonSuggestion
impl UnwindSafe for JsonSuggestion
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