pub struct LogsOptionsBuilder { /* private fields */ }
Expand description
Builder interface for LogsOptions
Implementations§
Source§impl LogsOptionsBuilder
impl LogsOptionsBuilder
pub fn new() -> LogsOptionsBuilder
pub fn follow(&mut self, f: bool) -> &mut LogsOptionsBuilder
pub fn stdout(&mut self, s: bool) -> &mut LogsOptionsBuilder
pub fn stderr(&mut self, s: bool) -> &mut LogsOptionsBuilder
pub fn timestamps(&mut self, t: bool) -> &mut LogsOptionsBuilder
Sourcepub fn tail(&mut self, how_many: &str) -> &mut LogsOptionsBuilder
pub fn tail(&mut self, how_many: &str) -> &mut LogsOptionsBuilder
how_many can either by “all” or a to_string() of the number
pub fn build(&self) -> LogsOptions
Trait Implementations§
Source§impl Default for LogsOptionsBuilder
impl Default for LogsOptionsBuilder
Source§fn default() -> LogsOptionsBuilder
fn default() -> LogsOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LogsOptionsBuilder
impl RefUnwindSafe for LogsOptionsBuilder
impl Send for LogsOptionsBuilder
impl Sync for LogsOptionsBuilder
impl Unpin for LogsOptionsBuilder
impl UnwindSafe for LogsOptionsBuilder
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> 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 more