pub struct ContextItem {
pub source: String,
pub content: String,
pub truncated: bool,
}Fields§
§source: StringStable identifier for the source — "journalctl", "docker_logs",
"df_h", "ps_top10_rss", "dmesg", etc. Rule-library matchers key
off this for source-aware patterns.
content: StringPlain text. Always post-redaction. Trimmed to the per-item soft cap.
truncated: boolTrue if content was truncated below what the collector originally produced.
Trait Implementations§
Source§impl Clone for ContextItem
impl Clone for ContextItem
Source§fn clone(&self) -> ContextItem
fn clone(&self) -> ContextItem
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 ContextItem
impl Debug for ContextItem
Source§impl<'de> Deserialize<'de> for ContextItem
impl<'de> Deserialize<'de> for ContextItem
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 ContextItem
impl PartialEq for ContextItem
Source§fn eq(&self, other: &ContextItem) -> bool
fn eq(&self, other: &ContextItem) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContextItem
impl Serialize for ContextItem
impl StructuralPartialEq for ContextItem
Auto Trait Implementations§
impl Freeze for ContextItem
impl RefUnwindSafe for ContextItem
impl Send for ContextItem
impl Sync for ContextItem
impl Unpin for ContextItem
impl UnsafeUnpin for ContextItem
impl UnwindSafe for ContextItem
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