Skip to main content

CmeScenarioV0

Struct CmeScenarioV0 

Source
pub struct CmeScenarioV0 {
Show 15 fields pub schema_version: &'static str, pub product: &'static str, pub fixture_grammar: &'static str, pub archetype: CmeScenarioArchetypeV0, pub archetype_id: &'static str, pub file_count: usize, pub source_file_count: usize, pub style_file_count: usize, pub expectation_count: usize, pub marker_count: usize, pub metadata_count: usize, pub expected_products: Vec<String>, pub shadow_omena_verbs: Vec<String>, pub readiness: CmeScenarioReadinessV0, pub call_site: Option<CmeScenarioCallSiteV0>,
}
Expand description

Scenario summary produced by the v0.1 testkit scenario macro substrate.

Fields§

§schema_version: &'static str

Schema version.

§product: &'static str

Product surface.

§fixture_grammar: &'static str

Fixture grammar consumed by this scenario.

§archetype: CmeScenarioArchetypeV0

Scenario archetype.

§archetype_id: &'static str

Stable archetype identifier.

§file_count: usize

Parsed file count.

§source_file_count: usize

Parsed source file count.

§style_file_count: usize

Parsed style file count.

§expectation_count: usize

Parsed expectation count.

§marker_count: usize

Parsed marker count.

§metadata_count: usize

Parsed metadata count.

§expected_products: Vec<String>

Product expectations declared by the fixture.

§shadow_omena_verbs: Vec<String>

Extracted shadow.omena(<verb>) introspection verbs.

§readiness: CmeScenarioReadinessV0

Readiness evidence.

§call_site: Option<CmeScenarioCallSiteV0>

Macro call-site evidence, present only for macro-built scenarios.

Trait Implementations§

Source§

impl Clone for CmeScenarioV0

Source§

fn clone(&self) -> CmeScenarioV0

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CmeScenarioV0

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for CmeScenarioV0

Source§

impl PartialEq for CmeScenarioV0

Source§

fn eq(&self, other: &CmeScenarioV0) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for CmeScenarioV0

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CmeScenarioV0

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.