pub enum Block {
Show 16 variants
Markdown {
text: String,
},
Callout {
level: CalloutLevel,
text: String,
},
Heading {
level: u8,
text: String,
},
Divider,
Kv {
pairs: Vec<KvPair>,
},
Table {
columns: Vec<Column>,
rows: Vec<Value>,
sortable: bool,
searchable: bool,
},
Code {
language: String,
text: String,
},
Json {
data: Value,
collapsed: bool,
},
Hex {
bytes_b64: String,
offset: u64,
},
Image {
artifact: String,
caption: Option<String>,
},
Download {
artifact: String,
label: String,
},
Iocs {
items: Vec<Indicator>,
},
Ttps {
items: Vec<Ttp>,
},
Tree {
nodes: Vec<TreeNode>,
},
Timeline {
events: Vec<TimelineEvent>,
},
Graph {
nodes: Vec<GraphNode>,
edges: Vec<GraphEdge>,
},
}Expand description
A renderable block. The frontend dispatches on type; unknown types
are rendered as a JSON tree so additions are non-breaking.
Variants§
Markdown
Rendered markdown text.
Callout
Highlighted message box (info, success, warning, or error).
Heading
Section heading. level maps to HTML heading levels (1-6).
Divider
Horizontal rule separating content.
Kv
Key-value pairs displayed as a definition list.
Table
Tabular data with typed columns and JSON rows.
Code
Syntax-highlighted source code.
Json
Interactive JSON tree viewer.
Hex
Hex dump of binary data. bytes_b64 is base64-encoded.
Image
Inline image resolved from a sibling artifact result.
Download
Download link resolved from a sibling artifact result.
Iocs
Formatted list of indicators of compromise.
Ttps
Formatted list of MITRE ATT&CK techniques.
Tree
Collapsible tree structure (e.g. process trees, file hierarchies).
Timeline
Chronological event timeline.
Fields
events: Vec<TimelineEvent>Graph
Node-and-edge graph (e.g. network connections, call graphs).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
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>,
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].