pub struct ProjectContext {
pub workspace_root: Option<String>,
pub sdk_root: Option<String>,
pub board_yaml_path: Option<String>,
pub west_cwd: Option<String>,
pub python_binary: String,
}Expand description
Resolved project context shared by every CLI/IDE surface; serialized as camelCase JSON.
Fields§
§workspace_root: Option<String>First workspace folder, or None when no folder is open.
sdk_root: Option<String>Detected/configured SDK root, or None when absent or ambiguous.
board_yaml_path: Option<String>Absolute path to board.yaml, or None without a workspace root.
west_cwd: Option<String>Working directory for west, or None without a workspace root.
python_binary: StringPython interpreter to invoke (configured value or platform default).
Trait Implementations§
Source§impl Clone for ProjectContext
impl Clone for ProjectContext
Source§fn clone(&self) -> ProjectContext
fn clone(&self) -> ProjectContext
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 ProjectContext
impl Debug for ProjectContext
impl Eq for ProjectContext
Source§impl PartialEq for ProjectContext
impl PartialEq for ProjectContext
Source§fn eq(&self, other: &ProjectContext) -> bool
fn eq(&self, other: &ProjectContext) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProjectContext
impl Serialize for ProjectContext
impl StructuralPartialEq for ProjectContext
Auto Trait Implementations§
impl Freeze for ProjectContext
impl RefUnwindSafe for ProjectContext
impl Send for ProjectContext
impl Sync for ProjectContext
impl Unpin for ProjectContext
impl UnsafeUnpin for ProjectContext
impl UnwindSafe for ProjectContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.