pub struct PinkyConfig {
pub long_format: bool,
pub omit_home_shell: bool,
pub omit_project: bool,
pub omit_plan: bool,
pub short_format: bool,
pub omit_heading: bool,
pub omit_fullname: bool,
pub omit_fullname_host: bool,
pub omit_fullname_host_idle: bool,
pub users: Vec<String>,
}Expand description
Configuration for the pinky command, derived from CLI flags.
Fields§
§long_format: boolUse long format output (-l).
omit_home_shell: boolOmit home directory and shell in long format (-b).
omit_project: boolOmit project file in long format (-h).
omit_plan: boolOmit plan file in long format (-p).
short_format: boolShort format (default) (-s).
omit_heading: boolOmit column heading in short format (-f).
omit_fullname: boolOmit full name in short format (-w).
omit_fullname_host: boolOmit full name and remote host in short format (-i).
omit_fullname_host_idle: boolOmit full name, remote host, and idle time in short format (-q).
users: Vec<String>Specific users to look up (positional args).
Trait Implementations§
Source§impl Clone for PinkyConfig
impl Clone for PinkyConfig
Source§fn clone(&self) -> PinkyConfig
fn clone(&self) -> PinkyConfig
Returns a duplicate 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 PinkyConfig
impl Debug for PinkyConfig
Auto Trait Implementations§
impl Freeze for PinkyConfig
impl RefUnwindSafe for PinkyConfig
impl Send for PinkyConfig
impl Sync for PinkyConfig
impl Unpin for PinkyConfig
impl UnsafeUnpin for PinkyConfig
impl UnwindSafe for PinkyConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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