pub struct PrintConfig {
pub show_id: bool,
pub show_parent_id: bool,
pub show_name: bool,
pub show_type: bool,
pub show_status: bool,
pub show_start_time: bool,
pub show_end_time: bool,
pub show_duration: bool,
pub show_result: bool,
}Expand description
Configuration for print output.
Controls which columns are displayed when printing the operations table.
Fields§
§show_id: boolShow the operation ID column
show_parent_id: boolShow the parent ID column
show_name: boolShow the operation name column
show_type: boolShow the operation type column
show_status: boolShow the operation status column
show_start_time: boolShow the start timestamp column
show_end_time: boolShow the end timestamp column
show_duration: boolShow the duration column
show_result: boolShow the result/error column
Implementations§
Source§impl PrintConfig
impl PrintConfig
Sourcepub fn with_parent_id(self, show: bool) -> Self
pub fn with_parent_id(self, show: bool) -> Self
Builder method to set show_parent_id.
Sourcepub fn with_status(self, show: bool) -> Self
pub fn with_status(self, show: bool) -> Self
Builder method to set show_status.
Sourcepub fn with_start_time(self, show: bool) -> Self
pub fn with_start_time(self, show: bool) -> Self
Builder method to set show_start_time.
Sourcepub fn with_end_time(self, show: bool) -> Self
pub fn with_end_time(self, show: bool) -> Self
Builder method to set show_end_time.
Sourcepub fn with_duration(self, show: bool) -> Self
pub fn with_duration(self, show: bool) -> Self
Builder method to set show_duration.
Sourcepub fn with_result(self, show: bool) -> Self
pub fn with_result(self, show: bool) -> Self
Builder method to set show_result.
Trait Implementations§
Source§impl Clone for PrintConfig
impl Clone for PrintConfig
Source§fn clone(&self) -> PrintConfig
fn clone(&self) -> PrintConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 PrintConfig
impl Debug for PrintConfig
Auto Trait Implementations§
impl Freeze for PrintConfig
impl RefUnwindSafe for PrintConfig
impl Send for PrintConfig
impl Sync for PrintConfig
impl Unpin for PrintConfig
impl UnsafeUnpin for PrintConfig
impl UnwindSafe for PrintConfig
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> 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.