pub struct ProjectSnapshot {
pub root: String,
pub speckit: SpeckitMeta,
pub constitution: ConstitutionState,
pub features: Vec<FeatureRef>,
pub selection: Selection,
pub feature: Option<FeatureSnapshot>,
pub diagnostics: Vec<Diagnostic>,
pub format: FormatKind,
pub openspec: Option<OpenSpecMeta>,
}Expand description
Everything discovered about one Spec Kit project.
Fields§
§root: StringAbsolute, canonical project root (the directory containing .specify/).
speckit: SpeckitMetaSpec Kit metadata recorded in the project.
constitution: ConstitutionStateState of .specify/memory/constitution.md.
features: Vec<FeatureRef>Feature directories, ordered by numeric prefix then name.
selection: SelectionWhich feature was selected, and why.
feature: Option<FeatureSnapshot>The selected feature, if any.
diagnostics: Vec<Diagnostic>Problems found while discovering and parsing.
format: FormatKindThe spec format (omitted for Spec Kit, the reference format).
openspec: Option<OpenSpecMeta>What an OpenSpec project adds: its schema, context and the selected change’s requirements.
Implementations§
Source§impl ProjectSnapshot
impl ProjectSnapshot
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Whether any diagnostic is an error.
Trait Implementations§
Source§impl Clone for ProjectSnapshot
impl Clone for ProjectSnapshot
Source§impl Debug for ProjectSnapshot
impl Debug for ProjectSnapshot
impl Eq for ProjectSnapshot
Source§impl JsonSchema for ProjectSnapshot
impl JsonSchema for ProjectSnapshot
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ProjectSnapshot
impl PartialEq for ProjectSnapshot
Source§impl Serialize for ProjectSnapshot
impl Serialize for ProjectSnapshot
impl StructuralPartialEq for ProjectSnapshot
Auto Trait Implementations§
impl Freeze for ProjectSnapshot
impl RefUnwindSafe for ProjectSnapshot
impl Send for ProjectSnapshot
impl Sync for ProjectSnapshot
impl Unpin for ProjectSnapshot
impl UnsafeUnpin for ProjectSnapshot
impl UnwindSafe for ProjectSnapshot
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