pub struct ShowEnvironment<'a> {
pub hidden: bool,
pub global: bool,
pub as_shell_commands: bool,
pub target_session: Option<Cow<'a, str>>,
pub variable: Option<Cow<'a, str>>,
}
Expand description
§Manual
tmux ^3.2:
show-environment [-hgs] [-t target-session] [variable]
(alias: showenv)
tmux ^2.1:
show-environment [-gs] [-t target-session] [variable]
(alias: showenv)
tmux ^1.7:
show-environment [-g] [-t target-session] [variable]
(alias: showenv)
tmux ^1.0:
show-environment [-g] [-t target-session]
(alias: showenv)
Fields§
[-h]
global: bool
[-g]
as_shell_commands: bool
[-s]
target_session: Option<Cow<'a, str>>
[-t target-session]
variable: Option<Cow<'a, str>>
[variable]
Implementations§
Source§impl<'a> ShowEnvironment<'a>
impl<'a> ShowEnvironment<'a>
pub fn new() -> Self
[-h]
Sourcepub fn as_shell_commands(self) -> Self
pub fn as_shell_commands(self) -> Self
[-s]
Sourcepub fn target_session<S: Into<Cow<'a, str>>>(self, target_session: S) -> Self
pub fn target_session<S: Into<Cow<'a, str>>>(self, target_session: S) -> Self
[-t target-session]
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
Source§impl<'a> Clone for ShowEnvironment<'a>
impl<'a> Clone for ShowEnvironment<'a>
Source§fn clone(&self) -> ShowEnvironment<'a>
fn clone(&self) -> ShowEnvironment<'a>
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<'a> Debug for ShowEnvironment<'a>
impl<'a> Debug for ShowEnvironment<'a>
Source§impl<'a> Default for ShowEnvironment<'a>
impl<'a> Default for ShowEnvironment<'a>
Source§fn default() -> ShowEnvironment<'a>
fn default() -> ShowEnvironment<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> From<ShowEnvironment<'a>> for TmuxCommand<'a>
impl<'a> From<ShowEnvironment<'a>> for TmuxCommand<'a>
Source§fn from(item: ShowEnvironment<'a>) -> Self
fn from(item: ShowEnvironment<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for ShowEnvironment<'a>
impl<'a> Hash for ShowEnvironment<'a>
Source§impl<'a> Ord for ShowEnvironment<'a>
impl<'a> Ord for ShowEnvironment<'a>
Source§fn cmp(&self, other: &ShowEnvironment<'a>) -> Ordering
fn cmp(&self, other: &ShowEnvironment<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for ShowEnvironment<'a>
impl<'a> PartialEq for ShowEnvironment<'a>
Source§impl<'a> PartialOrd for ShowEnvironment<'a>
impl<'a> PartialOrd for ShowEnvironment<'a>
impl<'a> Eq for ShowEnvironment<'a>
impl<'a> StructuralPartialEq for ShowEnvironment<'a>
Auto Trait Implementations§
impl<'a> Freeze for ShowEnvironment<'a>
impl<'a> RefUnwindSafe for ShowEnvironment<'a>
impl<'a> Send for ShowEnvironment<'a>
impl<'a> Sync for ShowEnvironment<'a>
impl<'a> Unpin for ShowEnvironment<'a>
impl<'a> UnwindSafe for ShowEnvironment<'a>
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