pub struct OpenSpecMeta {
pub schema: String,
pub context: Option<String>,
pub unit_kind: String,
pub requirements: Vec<DeltaRequirement>,
}Expand description
What an OpenSpec project adds to its snapshot.
Fields§
§schema: StringThe workflow schema (spec-driven is the one speccoder runs).
context: Option<String>context of openspec/config.yaml, if any.
unit_kind: StringWhat a unit of work is called.
requirements: Vec<DeltaRequirement>The selected change’s delta requirements, in file order.
Trait Implementations§
Source§impl Clone for OpenSpecMeta
impl Clone for OpenSpecMeta
Source§impl Debug for OpenSpecMeta
impl Debug for OpenSpecMeta
impl Eq for OpenSpecMeta
Source§impl JsonSchema for OpenSpecMeta
impl JsonSchema for OpenSpecMeta
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 OpenSpecMeta
impl PartialEq for OpenSpecMeta
Source§impl Serialize for OpenSpecMeta
impl Serialize for OpenSpecMeta
impl StructuralPartialEq for OpenSpecMeta
Auto Trait Implementations§
impl Freeze for OpenSpecMeta
impl RefUnwindSafe for OpenSpecMeta
impl Send for OpenSpecMeta
impl Sync for OpenSpecMeta
impl Unpin for OpenSpecMeta
impl UnsafeUnpin for OpenSpecMeta
impl UnwindSafe for OpenSpecMeta
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