pub struct Logger {
pub action: Option<String>,
pub input: Option<String>,
pub output: Option<String>,
}
Expand description
The Logger object.
Fields§
§action: Option<String>
§input: Option<String>
§output: Option<String>
Implementations§
Source§impl Logger
impl Logger
pub fn action<T: Display>(self, action: T) -> Self
pub fn input<T: Display>(self, input: T) -> Self
pub fn output<T: Display>(self, output: T) -> Self
pub fn print(self, color: &str) -> Self
pub fn ok(self) -> Self
pub fn warn(self) -> Self
pub fn err(self) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Logger
impl RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl UnwindSafe for Logger
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