pub struct ValidationWarning {
pub widget_kind: WidgetKind,
pub declared_version: SchemaVersion,
pub required_version: SchemaVersion,
pub span: Span,
}Expand description
Warning about a widget requiring a higher schema version than declared.
This is non-blocking validation - widgets may work but compatibility is not guaranteed.
Fields§
§widget_kind: WidgetKindThe widget that requires a higher version
declared_version: SchemaVersionThe schema version declared in the document
required_version: SchemaVersionThe minimum version required by the widget
span: SpanSource location of the widget
Implementations§
Source§impl ValidationWarning
impl ValidationWarning
Sourcepub fn format_message(&self) -> String
pub fn format_message(&self) -> String
Format the warning as a human-readable message
Sourcepub fn suggestion(&self) -> String
pub fn suggestion(&self) -> String
Get a suggestion for resolving the warning
Trait Implementations§
Source§impl Clone for ValidationWarning
impl Clone for ValidationWarning
Source§fn clone(&self) -> ValidationWarning
fn clone(&self) -> ValidationWarning
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 moreSource§impl Debug for ValidationWarning
impl Debug for ValidationWarning
Source§impl PartialEq for ValidationWarning
impl PartialEq for ValidationWarning
impl StructuralPartialEq for ValidationWarning
Auto Trait Implementations§
impl Freeze for ValidationWarning
impl RefUnwindSafe for ValidationWarning
impl Send for ValidationWarning
impl Sync for ValidationWarning
impl Unpin for ValidationWarning
impl UnwindSafe for ValidationWarning
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