pub struct LogsOptsBuilder { /* private fields */ }
Expand description
A builder struct for LogsOpts.
Implementations§
Source§impl LogsOptsBuilder
impl LogsOptsBuilder
Sourcepub fn timestamps(self, timestamps: bool) -> Self
pub fn timestamps(self, timestamps: bool) -> Self
Add timestamps to every log line.
Sourcepub fn n_lines(self, n_lines: usize) -> Self
pub fn n_lines(self, n_lines: usize) -> Self
Only return this number of log lines from the end of logs
Trait Implementations§
Source§impl Clone for LogsOptsBuilder
impl Clone for LogsOptsBuilder
Source§fn clone(&self) -> LogsOptsBuilder
fn clone(&self) -> LogsOptsBuilder
Returns a copy 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 LogsOptsBuilder
impl Debug for LogsOptsBuilder
Source§impl Default for LogsOptsBuilder
impl Default for LogsOptsBuilder
Source§fn default() -> LogsOptsBuilder
fn default() -> LogsOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LogsOptsBuilder
impl RefUnwindSafe for LogsOptsBuilder
impl Send for LogsOptsBuilder
impl Sync for LogsOptsBuilder
impl Unpin for LogsOptsBuilder
impl UnwindSafe for LogsOptsBuilder
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