pub struct StreamSummary {
pub byte_len: usize,
pub line_count: usize,
pub snippet: String,
pub truncated: bool,
pub redacted: bool,
}Expand description
Bounded and redacted stream summary.
Fields§
§byte_len: usizeOriginal stream byte length before redaction or truncation.
line_count: usizeOriginal stream line count before redaction or truncation.
snippet: StringRedacted snippet retained in memory.
truncated: boolWhether the redacted snippet was truncated.
redacted: boolWhether any obvious secret-looking text was redacted.
Implementations§
Trait Implementations§
Source§impl Clone for StreamSummary
impl Clone for StreamSummary
Source§fn clone(&self) -> StreamSummary
fn clone(&self) -> StreamSummary
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 StreamSummary
impl Debug for StreamSummary
Source§impl Default for StreamSummary
impl Default for StreamSummary
Source§fn default() -> StreamSummary
fn default() -> StreamSummary
Returns the “default value” for a type. Read more
impl Eq for StreamSummary
Source§impl PartialEq for StreamSummary
impl PartialEq for StreamSummary
Source§fn eq(&self, other: &StreamSummary) -> bool
fn eq(&self, other: &StreamSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamSummary
Auto Trait Implementations§
impl Freeze for StreamSummary
impl RefUnwindSafe for StreamSummary
impl Send for StreamSummary
impl Sync for StreamSummary
impl Unpin for StreamSummary
impl UnsafeUnpin for StreamSummary
impl UnwindSafe for StreamSummary
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