pub enum ComponentKind {
Show 14 variants
Text {
text: String,
},
Markdown {
markdown: String,
},
Status {
label: String,
value: String,
level: StatusLevel,
},
Progress {
label: String,
current: u64,
total: Option<u64>,
},
Table {
columns: Vec<String>,
rows: Vec<Vec<String>>,
},
KeyValue {
entries: BTreeMap<String, String>,
},
Diff {
before: String,
after: String,
},
TestResults {
passed: u64,
failed: u64,
skipped: u64,
details: Vec<String>,
},
Form {
fields: Vec<FormField>,
},
Choice {
label: String,
options: Vec<ChoiceOption>,
selected: Option<String>,
},
Evidence {
title: String,
items: Vec<EvidenceItem>,
},
Timeline {
entries: Vec<TimelineEntry>,
},
Stack {
children: Vec<Component>,
},
Columns {
columns: Vec<Vec<Component>>,
},
}Variants§
Text
Markdown
Status
Progress
Table
KeyValue
Diff
TestResults
Form
Choice
Evidence
Timeline
Fields
§
entries: Vec<TimelineEntry>Stack
Columns
Implementations§
Trait Implementations§
Source§impl Clone for ComponentKind
impl Clone for ComponentKind
Source§fn clone(&self) -> ComponentKind
fn clone(&self) -> ComponentKind
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 ComponentKind
impl Debug for ComponentKind
Source§impl<'de> Deserialize<'de> for ComponentKind
impl<'de> Deserialize<'de> for ComponentKind
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 ComponentKind
impl PartialEq for ComponentKind
Source§impl Serialize for ComponentKind
impl Serialize for ComponentKind
impl StructuralPartialEq for ComponentKind
Auto Trait Implementations§
impl Freeze for ComponentKind
impl RefUnwindSafe for ComponentKind
impl Send for ComponentKind
impl Sync for ComponentKind
impl Unpin for ComponentKind
impl UnsafeUnpin for ComponentKind
impl UnwindSafe for ComponentKind
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