pub struct SessionBase {
pub working_dir: Option<String>,
pub vcs_revision: Option<String>,
pub vcs_branch: Option<String>,
pub vcs_remote: Option<String>,
}Expand description
Path-level base context for a conversation: where the session was rooted
and against what VCS state. Populated by the provider’s to_view; projects
straight onto Path.base by derive_path.
Fields§
§working_dir: Option<String>Working directory (absolute path).
vcs_revision: Option<String>VCS revision (commit hash, changeset id).
vcs_branch: Option<String>VCS branch.
vcs_remote: Option<String>Repository URL or other origin identifier.
Trait Implementations§
Source§impl Clone for SessionBase
impl Clone for SessionBase
Source§fn clone(&self) -> SessionBase
fn clone(&self) -> SessionBase
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 SessionBase
impl Debug for SessionBase
Source§impl Default for SessionBase
impl Default for SessionBase
Source§fn default() -> SessionBase
fn default() -> SessionBase
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionBase
impl<'de> Deserialize<'de> for SessionBase
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 SessionBase
impl RefUnwindSafe for SessionBase
impl Send for SessionBase
impl Sync for SessionBase
impl Unpin for SessionBase
impl UnsafeUnpin for SessionBase
impl UnwindSafe for SessionBase
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