pub struct DetailBlock {
pub id: String,
pub kind: String,
pub label: Option<String>,
pub total_count: Option<u64>,
pub examples: Vec<DetailExample>,
pub extract: Vec<ExtractHint>,
pub truncated: bool,
}Expand description
Renderer-visible, bounded evidence attached to a diff node.
Fields§
§id: StringStable within this node, for anchors and extract selection.
kind: StringOpen, namespaced kind such as binoc.tabular.cell_changes.v1.
label: Option<String>Short renderer-facing label.
total_count: Option<u64>Total matching items if known, including omitted examples.
examples: Vec<DetailExample>Captured examples for inline rendering.
extract: Vec<ExtractHint>Named extract aspects for exhaustive retrieval.
truncated: boolWhether the producer truncated capture before exhausting candidates.
Implementations§
Source§impl DetailBlock
impl DetailBlock
pub fn new(id: impl Into<String>, kind: impl Into<String>) -> Self
pub fn with_label(self, label: impl Into<String>) -> Self
pub fn with_total_count(self, total_count: u64) -> Self
pub fn with_example(self, example: DetailExample) -> Self
pub fn with_extract_hint(self, hint: ExtractHint) -> Self
Trait Implementations§
Source§impl Clone for DetailBlock
impl Clone for DetailBlock
Source§fn clone(&self) -> DetailBlock
fn clone(&self) -> DetailBlock
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 DetailBlock
impl Debug for DetailBlock
Source§impl<'de> Deserialize<'de> for DetailBlock
impl<'de> Deserialize<'de> for DetailBlock
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 DetailBlock
impl RefUnwindSafe for DetailBlock
impl Send for DetailBlock
impl Sync for DetailBlock
impl Unpin for DetailBlock
impl UnsafeUnpin for DetailBlock
impl UnwindSafe for DetailBlock
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