pub struct DisplayField {
pub field: String,
pub label: String,
pub kind: Option<String>,
}Fields§
§field: StringTop-level key in the stdout JSON.
label: StringHuman-readable column header.
kind: Option<String>Optional render hint — "number", "bytes", "timestamp".
Defaults to plain text rendering on the SPA side.
Trait Implementations§
Source§impl Clone for DisplayField
impl Clone for DisplayField
Source§fn clone(&self) -> DisplayField
fn clone(&self) -> DisplayField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DisplayField
impl Debug for DisplayField
Source§impl<'de> Deserialize<'de> for DisplayField
impl<'de> Deserialize<'de> for DisplayField
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
Auto Trait Implementations§
impl Freeze for DisplayField
impl RefUnwindSafe for DisplayField
impl Send for DisplayField
impl Sync for DisplayField
impl Unpin for DisplayField
impl UnsafeUnpin for DisplayField
impl UnwindSafe for DisplayField
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