pub struct StyleSuggestion {
pub title: String,
pub explanation: String,
pub quick_fix_hint: Option<String>,
pub safer_alternative: Option<String>,
}Expand description
A suggested fix or improvement for the finding.
Fields§
§title: String§explanation: String§quick_fix_hint: Option<String>§safer_alternative: Option<String>Trait Implementations§
Source§impl Clone for StyleSuggestion
impl Clone for StyleSuggestion
Source§fn clone(&self) -> StyleSuggestion
fn clone(&self) -> StyleSuggestion
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 moreAuto Trait Implementations§
impl Freeze for StyleSuggestion
impl RefUnwindSafe for StyleSuggestion
impl Send for StyleSuggestion
impl Sync for StyleSuggestion
impl Unpin for StyleSuggestion
impl UnsafeUnpin for StyleSuggestion
impl UnwindSafe for StyleSuggestion
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