pub struct InstructionSource {
pub apply_to: Option<Vec<String>>,
pub content: String,
pub default_disabled: Option<bool>,
pub description: Option<String>,
pub id: String,
pub label: String,
pub location: InstructionSourceLocation,
pub project_path: Option<String>,
pub source_path: String,
pub type: InstructionSourceType,
}Expand description
Schema for the InstructionSource type.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§apply_to: Option<Vec<String>>Glob pattern(s) from frontmatter — when set, this instruction applies only to matching files
content: StringRaw content of the instruction file
default_disabled: Option<bool>When true, this source starts disabled and must be toggled on by the user
description: Option<String>Short description (body after frontmatter) for use in instruction tables
id: StringUnique identifier for this source (used for toggling)
label: StringHuman-readable label
location: InstructionSourceLocationWhere this source lives — used for UI grouping
project_path: Option<String>The project path this source was discovered from. Only set by sessionless discovery for repository/working-directory sources, where it disambiguates same-named files (e.g. .github/copilot-instructions.md) across multiple workspace roots. The session-scoped getSources leaves it unset.
source_path: StringFile path relative to repo or absolute for home
type: InstructionSourceTypeCategory of instruction source — used for merge logic
Trait Implementations§
Source§impl Clone for InstructionSource
impl Clone for InstructionSource
Source§fn clone(&self) -> InstructionSource
fn clone(&self) -> InstructionSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more