pub struct ContainerLogsOptsBuilder { /* private fields */ }
Expand description
A builder struct for ContainerLogsOpts.
Implementations§
Source§impl ContainerLogsOptsBuilder
impl ContainerLogsOptsBuilder
Sourcepub fn build(self) -> ContainerLogsOpts
pub fn build(self) -> ContainerLogsOpts
Finish building ContainerLogsOpts.
Source§impl ContainerLogsOptsBuilder
impl ContainerLogsOptsBuilder
Sourcepub fn since(self, since: impl Into<String>) -> Self
pub fn since(self, since: impl Into<String>) -> Self
Only return logs since this time, as a UNIX timestamp.
Sourcepub fn tail(self, tail: impl Into<String>) -> Self
pub fn tail(self, tail: impl Into<String>) -> Self
Only return this number of log lines from the end of the logs. Default - all
Sourcepub fn timestamps(self, timestamps: bool) -> Self
pub fn timestamps(self, timestamps: bool) -> Self
Add timestamps to every log line.
Trait Implementations§
Source§impl Clone for ContainerLogsOptsBuilder
impl Clone for ContainerLogsOptsBuilder
Source§fn clone(&self) -> ContainerLogsOptsBuilder
fn clone(&self) -> ContainerLogsOptsBuilder
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 ContainerLogsOptsBuilder
impl Debug for ContainerLogsOptsBuilder
Source§impl Default for ContainerLogsOptsBuilder
impl Default for ContainerLogsOptsBuilder
Source§fn default() -> ContainerLogsOptsBuilder
fn default() -> ContainerLogsOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContainerLogsOptsBuilder
impl RefUnwindSafe for ContainerLogsOptsBuilder
impl Send for ContainerLogsOptsBuilder
impl Sync for ContainerLogsOptsBuilder
impl Unpin for ContainerLogsOptsBuilder
impl UnwindSafe for ContainerLogsOptsBuilder
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