Struct tmux_interface::commands::global_and_session_environment::show_environment::ShowEnvironment
source · 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§fn eq(&self, other: &ShowEnvironment<'a>) -> bool
fn eq(&self, other: &ShowEnvironment<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for ShowEnvironment<'a>
impl<'a> PartialOrd for ShowEnvironment<'a>
source§fn partial_cmp(&self, other: &ShowEnvironment<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &ShowEnvironment<'a>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'a> Eq for ShowEnvironment<'a>
impl<'a> StructuralPartialEq for ShowEnvironment<'a>
Auto Trait Implementations§
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