pub struct ContextScope {
pub workspace_id: String,
pub repository: Option<String>,
pub branch: Option<String>,
pub path: Option<String>,
pub symbol: Option<String>,
pub task_contract_id: Option<Uuid>,
}Expand description
Scope in which a context statement may be retrieved.
Fields§
§workspace_id: StringSecret-free digest of the canonical workspace identity.
repository: Option<String>Optional repository identity supplied by a trusted runtime integration.
branch: Option<String>Optional branch identity supplied by a trusted runtime integration.
path: Option<String>Workspace-relative path, when the statement is path-scoped.
symbol: Option<String>Language symbol, when the statement is symbol-scoped.
task_contract_id: Option<Uuid>Task contract that caused the observation.
Trait Implementations§
Source§impl Clone for ContextScope
impl Clone for ContextScope
Source§fn clone(&self) -> ContextScope
fn clone(&self) -> ContextScope
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 ContextScope
impl Debug for ContextScope
Source§impl<'de> Deserialize<'de> for ContextScope
impl<'de> Deserialize<'de> for ContextScope
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
impl Eq for ContextScope
Source§impl PartialEq for ContextScope
impl PartialEq for ContextScope
Source§impl Serialize for ContextScope
impl Serialize for ContextScope
impl StructuralPartialEq for ContextScope
Auto Trait Implementations§
impl Freeze for ContextScope
impl RefUnwindSafe for ContextScope
impl Send for ContextScope
impl Sync for ContextScope
impl Unpin for ContextScope
impl UnsafeUnpin for ContextScope
impl UnwindSafe for ContextScope
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