pub struct RenderOpts {
pub short: bool,
pub no_color: bool,
pub limit: Option<usize>,
}Expand description
Optional knobs the text renderer respects. New options append at the tail; defaults stay backwards-compatible.
Fields§
§short: boolCaller hint to render a compact one-line view (e.g. log --oneline).
no_color: boolSuppress ANSI colour. Resolved by cli::style from the global
CLI flag and env, but text renderers may want to consult it
directly when emitting low-level escapes.
limit: Option<usize>Optional row cap. None means “render everything”.
Trait Implementations§
Source§impl Clone for RenderOpts
impl Clone for RenderOpts
Source§fn clone(&self) -> RenderOpts
fn clone(&self) -> RenderOpts
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 RenderOpts
impl Debug for RenderOpts
Source§impl Default for RenderOpts
impl Default for RenderOpts
Source§fn default() -> RenderOpts
fn default() -> RenderOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RenderOpts
impl RefUnwindSafe for RenderOpts
impl Send for RenderOpts
impl Sync for RenderOpts
impl Unpin for RenderOpts
impl UnsafeUnpin for RenderOpts
impl UnwindSafe for RenderOpts
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request