pub struct DebugWarning {
pub node: Option<u64>,
pub kind: DebugWarningKind,
pub message: String,
}Expand description
Human-readable diagnostic optionally attributed to one node.
§Examples
use ailloli_ui_devtools_core::{DebugWarning, DebugWarningKind};
let warning = DebugWarning { node: Some(4), kind: DebugWarningKind::MissingLayout,
message: "node is in the tree but has no layout".into() };
assert_eq!(warning.node, Some(4));Fields§
§node: Option<u64>Affected element ID, or None for future snapshot-wide warnings.
kind: DebugWarningKindStable machine-readable category.
message: StringHuman-readable English explanation; not a stable protocol key.
Trait Implementations§
Source§impl Clone for DebugWarning
impl Clone for DebugWarning
Source§fn clone(&self) -> DebugWarning
fn clone(&self) -> DebugWarning
Returns a copy 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 DebugWarning
impl Debug for DebugWarning
Source§impl<'de> Deserialize<'de> for DebugWarning
impl<'de> Deserialize<'de> for DebugWarning
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
Source§impl PartialEq for DebugWarning
impl PartialEq for DebugWarning
Source§impl Serialize for DebugWarning
impl Serialize for DebugWarning
impl StructuralPartialEq for DebugWarning
Auto Trait Implementations§
impl Freeze for DebugWarning
impl RefUnwindSafe for DebugWarning
impl Send for DebugWarning
impl Sync for DebugWarning
impl Unpin for DebugWarning
impl UnwindSafe for DebugWarning
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.