pub struct Unknown {
pub t: String,
pub key: Option<Key>,
pub style: Option<Style>,
pub block: Option<BlockProps>,
pub fallback: Option<Box<Node>>,
}Expand description
An unknown node kind (§4.8): parsers keep the tag (and the common props) so the
renderer can draw fallback or nothing. Lowercase tags that are OUS v1 kinds
are rejected by validate (§4.8 migration gate).
Fields§
§t: StringThe raw t tag.
key: Option<Key>Identity among siblings.
style: Option<Style>Base style.
block: Option<BlockProps>Surrounding block, when present.
fallback: Option<Box<Node>>Rendered instead of nothing.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Unknown
impl<'de> Deserialize<'de> for Unknown
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
impl StructuralPartialEq for Unknown
Auto Trait Implementations§
impl Freeze for Unknown
impl RefUnwindSafe for Unknown
impl Send for Unknown
impl Sync for Unknown
impl Unpin for Unknown
impl UnsafeUnpin for Unknown
impl UnwindSafe for Unknown
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