pub struct SessionCtx {
pub cwd: String,
pub session_id: String,
pub project_name: Option<String>,
}Expand description
Context passed at plugin initialization (init) and on every
session_start.
Fields§
§cwd: StringWorking directory for the session.
session_id: StringSession id.
project_name: Option<String>Project name for this session, if any.
Trait Implementations§
Source§impl Clone for SessionCtx
impl Clone for SessionCtx
Source§fn clone(&self) -> SessionCtx
fn clone(&self) -> SessionCtx
Returns a duplicate 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 Debug for SessionCtx
impl Debug for SessionCtx
Source§impl<'de> Deserialize<'de> for SessionCtx
impl<'de> Deserialize<'de> for SessionCtx
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SessionCtx
impl RefUnwindSafe for SessionCtx
impl Send for SessionCtx
impl Sync for SessionCtx
impl Unpin for SessionCtx
impl UnsafeUnpin for SessionCtx
impl UnwindSafe for SessionCtx
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