Struct docker_api::opts::LogsOptsBuilder
source · [−]pub struct LogsOptsBuilder { /* private fields */ }
Expand description
A builder struct for LogsOpts.
Implementations
sourceimpl 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
sourceimpl Clone for LogsOptsBuilder
impl Clone for LogsOptsBuilder
sourcefn clone(&self) -> LogsOptsBuilder
fn clone(&self) -> LogsOptsBuilder
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for LogsOptsBuilder
impl Debug for LogsOptsBuilder
sourceimpl Default for LogsOptsBuilder
impl Default for LogsOptsBuilder
sourcefn default() -> LogsOptsBuilder
fn default() -> LogsOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for LogsOptsBuilder
impl Send for LogsOptsBuilder
impl Sync for LogsOptsBuilder
impl Unpin for LogsOptsBuilder
impl UnwindSafe for LogsOptsBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more