pub struct TransformWarning {
pub severity: WarningSeverity,
pub pattern: String,
pub message: String,
pub suggestion: Option<String>,
pub doc_link: Option<String>,
}Expand description
Rich warning with context and alternatives
Fields§
§severity: WarningSeverityWarning severity
pattern: StringThe pattern that triggered the warning
message: StringHuman-readable message
suggestion: Option<String>Suggested alternative or fix
doc_link: Option<String>Link to documentation
Implementations§
Trait Implementations§
Source§impl Clone for TransformWarning
impl Clone for TransformWarning
Source§fn clone(&self) -> TransformWarning
fn clone(&self) -> TransformWarning
Returns a duplicate of the value. Read more
1.0.0 · 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 TransformWarning
impl RefUnwindSafe for TransformWarning
impl Send for TransformWarning
impl Sync for TransformWarning
impl Unpin for TransformWarning
impl UnwindSafe for TransformWarning
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