Struct tmux_interface::commands::status_line::confirm_before::ConfirmBefore
source · pub struct ConfirmBefore<'a> {
pub background: bool,
pub change_default: bool,
pub confirm_key: Option<Cow<'a, str>>,
pub prompt: Option<Cow<'a, str>>,
pub target_client: Option<Cow<'a, str>>,
pub command: Option<Cow<'a, str>>,
}
Expand description
§Manual
tmux ^3.4:
confirm-before [-by] [-c confirm-key] [-p prompt] [-t target-client] command
(alias: confirm)
tmux ^1.5:
confirm-before [-p prompt] [-t target-client] command
(alias: confirm)
tmux ^0.9:
confirm-before [-t target-client] command
(alias: confirm)
Fields§
§background: bool
[-b]
change_default: bool
[-y]
confirm_key: Option<Cow<'a, str>>
[-c confirm-key]
prompt: Option<Cow<'a, str>>
[-p prompt]
target_client: Option<Cow<'a, str>>
[-t target-client]
command: Option<Cow<'a, str>>
command
Implementations§
source§impl<'a> ConfirmBefore<'a>
impl<'a> ConfirmBefore<'a>
pub fn new() -> Self
sourcepub fn background(self) -> Self
pub fn background(self) -> Self
[-b]
sourcepub fn change_default(self) -> Self
pub fn change_default(self) -> Self
[-y]
sourcepub fn confirm_key<S: Into<Cow<'a, str>>>(self, confirm_key: S) -> Self
pub fn confirm_key<S: Into<Cow<'a, str>>>(self, confirm_key: S) -> Self
[-c confirm-key]
sourcepub fn target_client<S: Into<Cow<'a, str>>>(self, target_client: S) -> Self
pub fn target_client<S: Into<Cow<'a, str>>>(self, target_client: S) -> Self
[-t target-client]
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> Clone for ConfirmBefore<'a>
impl<'a> Clone for ConfirmBefore<'a>
source§fn clone(&self) -> ConfirmBefore<'a>
fn clone(&self) -> ConfirmBefore<'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 ConfirmBefore<'a>
impl<'a> Debug for ConfirmBefore<'a>
source§impl<'a> Default for ConfirmBefore<'a>
impl<'a> Default for ConfirmBefore<'a>
source§fn default() -> ConfirmBefore<'a>
fn default() -> ConfirmBefore<'a>
Returns the “default value” for a type. Read more
source§impl<'a> From<ConfirmBefore<'a>> for TmuxCommand<'a>
impl<'a> From<ConfirmBefore<'a>> for TmuxCommand<'a>
source§fn from(item: ConfirmBefore<'a>) -> Self
fn from(item: ConfirmBefore<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for ConfirmBefore<'a>
impl<'a> Hash for ConfirmBefore<'a>
source§impl<'a> Ord for ConfirmBefore<'a>
impl<'a> Ord for ConfirmBefore<'a>
source§fn cmp(&self, other: &ConfirmBefore<'a>) -> Ordering
fn cmp(&self, other: &ConfirmBefore<'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 ConfirmBefore<'a>
impl<'a> PartialEq for ConfirmBefore<'a>
source§fn eq(&self, other: &ConfirmBefore<'a>) -> bool
fn eq(&self, other: &ConfirmBefore<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for ConfirmBefore<'a>
impl<'a> PartialOrd for ConfirmBefore<'a>
source§fn partial_cmp(&self, other: &ConfirmBefore<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &ConfirmBefore<'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 ConfirmBefore<'a>
impl<'a> StructuralPartialEq for ConfirmBefore<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ConfirmBefore<'a>
impl<'a> Send for ConfirmBefore<'a>
impl<'a> Sync for ConfirmBefore<'a>
impl<'a> Unpin for ConfirmBefore<'a>
impl<'a> UnwindSafe for ConfirmBefore<'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