pub struct TruncationLimits {
pub max_file_lines: usize,
pub shell_prefix_lines: usize,
pub shell_suffix_lines: usize,
pub max_line_length: usize,
pub max_dir_entries: usize,
pub max_json_bytes: usize,
}Expand description
Configuration for output truncation limits
Fields§
§max_file_lines: usizeMaximum lines to return from file reads (default: 2000)
shell_prefix_lines: usizeLines to keep from start of shell output (default: 200)
shell_suffix_lines: usizeLines to keep from end of shell output (default: 200)
max_line_length: usizeMaximum characters per line (default: 2000)
max_dir_entries: usizeMaximum directory entries to return (default: 500)
max_json_bytes: usizeMaximum JSON output size in bytes (default: 30KB)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TruncationLimits
impl RefUnwindSafe for TruncationLimits
impl Send for TruncationLimits
impl Sync for TruncationLimits
impl Unpin for TruncationLimits
impl UnwindSafe for TruncationLimits
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.