pub struct ScenarioRef {
pub id: String,
pub text: String,
}Expand description
A scenario a task’s acceptance tests cite: US1-2 (Spec Kit), or
capability: requirement / scenario (OpenSpec), with the spec’s words.
Fields§
§id: StringStable within the unit.
text: StringThe scenario as written in the spec.
Trait Implementations§
Source§impl Clone for ScenarioRef
impl Clone for ScenarioRef
Source§impl Debug for ScenarioRef
impl Debug for ScenarioRef
Source§impl<'de> Deserialize<'de> for ScenarioRef
impl<'de> Deserialize<'de> for ScenarioRef
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 ScenarioRef
Source§impl JsonSchema for ScenarioRef
impl JsonSchema for ScenarioRef
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 ScenarioRef
impl PartialEq for ScenarioRef
Source§impl Serialize for ScenarioRef
impl Serialize for ScenarioRef
impl StructuralPartialEq for ScenarioRef
Auto Trait Implementations§
impl Freeze for ScenarioRef
impl RefUnwindSafe for ScenarioRef
impl Send for ScenarioRef
impl Sync for ScenarioRef
impl Unpin for ScenarioRef
impl UnsafeUnpin for ScenarioRef
impl UnwindSafe for ScenarioRef
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