Struct podman_api::opts::ContainerLogsOptsBuilder
source · 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