pub struct RegisterRequest {
pub key: String,
pub folders: Vec<PathBuf>,
pub repo: Option<String>,
pub title: Option<String>,
pub pid: Option<u32>,
}Expand description
A register request from a companion extension.
The companion owns its key (a per-activate() UUID) so the registry never
has to reason about whether vscode.env.sessionId is unique per window;
everything else is best-effort metadata.
Fields§
§key: StringStable per-window identity, generated by the companion on activation.
folders: Vec<PathBuf>Absolute paths of the window’s workspace folders.
repo: Option<String>Repository root or name, when the window has one.
title: Option<String>The window title, for display.
pid: Option<u32>The reporting extension-host process id.
Trait Implementations§
Source§impl Clone for RegisterRequest
impl Clone for RegisterRequest
Source§fn clone(&self) -> RegisterRequest
fn clone(&self) -> RegisterRequest
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 RegisterRequest
impl Debug for RegisterRequest
Source§impl<'de> Deserialize<'de> for RegisterRequest
impl<'de> Deserialize<'de> for RegisterRequest
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 RegisterRequest
impl RefUnwindSafe for RegisterRequest
impl Send for RegisterRequest
impl Sync for RegisterRequest
impl Unpin for RegisterRequest
impl UnsafeUnpin for RegisterRequest
impl UnwindSafe for RegisterRequest
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