pub struct DeltaRequirement {
pub capability: String,
pub operation: String,
pub name: String,
pub scenarios: Vec<String>,
pub path: String,
pub line: u32,
}Expand description
One requirement of a change’s spec delta.
Fields§
§capability: StringThe capability (openspec/specs/<capability>/spec.md).
operation: Stringadded, modified, removed or renamed.
name: StringThe requirement’s name (the new name for a rename).
scenarios: Vec<String>Its scenarios’ names.
path: StringThe delta file, relative to the project root.
line: u32Its heading’s line.
Trait Implementations§
Source§impl Clone for DeltaRequirement
impl Clone for DeltaRequirement
Source§impl Debug for DeltaRequirement
impl Debug for DeltaRequirement
impl Eq for DeltaRequirement
Source§impl JsonSchema for DeltaRequirement
impl JsonSchema for DeltaRequirement
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 DeltaRequirement
impl PartialEq for DeltaRequirement
Source§impl Serialize for DeltaRequirement
impl Serialize for DeltaRequirement
impl StructuralPartialEq for DeltaRequirement
Auto Trait Implementations§
impl Freeze for DeltaRequirement
impl RefUnwindSafe for DeltaRequirement
impl Send for DeltaRequirement
impl Sync for DeltaRequirement
impl Unpin for DeltaRequirement
impl UnsafeUnpin for DeltaRequirement
impl UnwindSafe for DeltaRequirement
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