pub struct LogLine {
pub n: usize,
pub text: String,
pub level: Level,
pub repeats: usize,
}Expand description
One line of output, after consecutive repeats were collapsed.
Fields§
§n: usizeThe line number in the original output, counting from one.
Kept so a reader can tell that lines 12 and 4_310 are not adjacent, and so a gap in the numbering is the elision marker.
text: StringThe text, with trailing whitespace removed.
level: LevelHow important it looked. Omitted from the payload when informational, since that is the common case and repeating it would cost tokens.
repeats: usizeHow many consecutive identical lines this stands for. Omitted when one.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogLine
impl<'de> Deserialize<'de> for LogLine
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
impl Eq for LogLine
impl StructuralPartialEq for LogLine
Auto Trait Implementations§
impl Freeze for LogLine
impl RefUnwindSafe for LogLine
impl Send for LogLine
impl Sync for LogLine
impl Unpin for LogLine
impl UnsafeUnpin for LogLine
impl UnwindSafe for LogLine
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
Source§impl<T> Canonical for T
impl<T> Canonical for T
Source§fn canonical_bytes(&self) -> Result<Vec<u8>, CanonicalError>
fn canonical_bytes(&self) -> Result<Vec<u8>, CanonicalError>
The canonical CBOR encoding of this value.