pub struct Common {
pub key: Option<Key>,
pub style: Option<Style>,
pub block: Option<BlockProps>,
pub fallback: Option<Box<Node>>,
}Expand description
The common props of every node (Appendix A Common): identity, base style,
surrounding block and the fallback rendered for unknown / unsupported kinds.
Fields§
§key: Option<Key>Identity among siblings (§4.1).
style: Option<Style>Base style of the node’s area (§4.1).
block: Option<BlockProps>ratatui .block(..): chrome around the widget’s inner area.
fallback: Option<Box<Node>>Rendered when the kind is unknown or unsupported by the frontend (§4.1).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Common
impl<'de> Deserialize<'de> for Common
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 Common
Auto Trait Implementations§
impl Freeze for Common
impl RefUnwindSafe for Common
impl Send for Common
impl Sync for Common
impl Unpin for Common
impl UnsafeUnpin for Common
impl UnwindSafe for Common
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