pub struct IconCell {
pub icon: String,
pub tone: Option<Tone>,
pub tip: Option<CellText>,
}Expand description
An icon cell’s value in a record (CellKind::Icon): a registry
icon’s name (phosphor:cloud-slash, warning), its tone, and the
reason the tooltip and the accessible name say. A bare string is the
icon alone; a column’s text key then gives its tooltip.
{ "icon": "phosphor:cloud-slash", "tone": "muted",
"tip": { "key": "node-offline", "text": "Offline since { $since }", "args": { "since": "Monday" } } }Fields§
§icon: String§tone: Option<Tone>§tip: Option<CellText>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IconCell
impl<'de> Deserialize<'de> for IconCell
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 IconCell
Auto Trait Implementations§
impl Freeze for IconCell
impl RefUnwindSafe for IconCell
impl Send for IconCell
impl Sync for IconCell
impl Unpin for IconCell
impl UnsafeUnpin for IconCell
impl UnwindSafe for IconCell
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