pub struct SessionSpec {
pub username: String,
pub uid: u32,
pub gid: u32,
pub command: Vec<String>,
pub env: Vec<(String, String)>,
pub working_dir: Option<String>,
pub auth_session_id: Option<String>,
}Expand description
Command and environment used to start a user session after login.
Fields§
§username: String§uid: u32§gid: u32§command: Vec<String>§env: Vec<(String, String)>§working_dir: Option<String>§auth_session_id: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for SessionSpec
impl Clone for SessionSpec
Source§fn clone(&self) -> SessionSpec
fn clone(&self) -> SessionSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionSpec
impl Debug for SessionSpec
Source§impl PartialEq for SessionSpec
impl PartialEq for SessionSpec
Source§fn eq(&self, other: &SessionSpec) -> bool
fn eq(&self, other: &SessionSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SessionSpec
impl StructuralPartialEq for SessionSpec
Auto Trait Implementations§
impl Freeze for SessionSpec
impl RefUnwindSafe for SessionSpec
impl Send for SessionSpec
impl Sync for SessionSpec
impl Unpin for SessionSpec
impl UnsafeUnpin for SessionSpec
impl UnwindSafe for SessionSpec
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