pub struct ServerAccess<'a> {
pub add: bool,
pub delete: bool,
pub list: bool,
pub read: bool,
pub write: bool,
pub user: Option<Cow<'a, str>>,
}
Expand description
Fields§
§add: bool
[-a]
- give access
delete: bool
[-d]
- revoke access
list: bool
[-l]
- list current access permissions
read: bool
[-r]
- read-only permission for user
write: bool
[-w]
- write permission for user
user: Option<Cow<'a, str>>
\[user\]
- user
Implementations§
source§impl<'a> ServerAccess<'a>
impl<'a> ServerAccess<'a>
pub fn new() -> Self
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> Clone for ServerAccess<'a>
impl<'a> Clone for ServerAccess<'a>
source§fn clone(&self) -> ServerAccess<'a>
fn clone(&self) -> ServerAccess<'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 ServerAccess<'a>
impl<'a> Debug for ServerAccess<'a>
source§impl<'a> Default for ServerAccess<'a>
impl<'a> Default for ServerAccess<'a>
source§fn default() -> ServerAccess<'a>
fn default() -> ServerAccess<'a>
Returns the “default value” for a type. Read more
source§impl<'a> From<ServerAccess<'a>> for TmuxCommand<'a>
impl<'a> From<ServerAccess<'a>> for TmuxCommand<'a>
source§fn from(item: ServerAccess<'a>) -> Self
fn from(item: ServerAccess<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for ServerAccess<'a>
impl<'a> Hash for ServerAccess<'a>
source§impl<'a> Ord for ServerAccess<'a>
impl<'a> Ord for ServerAccess<'a>
source§fn cmp(&self, other: &ServerAccess<'a>) -> Ordering
fn cmp(&self, other: &ServerAccess<'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 ServerAccess<'a>
impl<'a> PartialEq for ServerAccess<'a>
source§fn eq(&self, other: &ServerAccess<'a>) -> bool
fn eq(&self, other: &ServerAccess<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for ServerAccess<'a>
impl<'a> PartialOrd for ServerAccess<'a>
source§fn partial_cmp(&self, other: &ServerAccess<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &ServerAccess<'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 ServerAccess<'a>
impl<'a> StructuralPartialEq for ServerAccess<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ServerAccess<'a>
impl<'a> Send for ServerAccess<'a>
impl<'a> Sync for ServerAccess<'a>
impl<'a> Unpin for ServerAccess<'a>
impl<'a> UnwindSafe for ServerAccess<'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