pub struct ReliabilityFixtureManifest {
pub schema_version: u32,
pub id: String,
pub entrypoint: String,
pub controls: Vec<ReliabilityFixtureControl>,
pub faults: Vec<ReliabilityFaultKind>,
pub oracles: Vec<ReliabilityFixtureOracle>,
}Expand description
Versioned manifest for a deterministic browser fixture.
Fields§
§schema_version: u32§id: String§entrypoint: String§controls: Vec<ReliabilityFixtureControl>§faults: Vec<ReliabilityFaultKind>§oracles: Vec<ReliabilityFixtureOracle>Implementations§
Source§impl ReliabilityFixtureManifest
impl ReliabilityFixtureManifest
Sourcepub fn from_json(input: &str) -> Result<Self, ReliabilityScenarioError>
pub fn from_json(input: &str) -> Result<Self, ReliabilityScenarioError>
Parse and validate one fixture manifest.
Sourcepub fn validate(&self) -> Result<(), ReliabilityScenarioError>
pub fn validate(&self) -> Result<(), ReliabilityScenarioError>
Validate the fixture identity, controls, faults, and independent oracles.
Sourcepub fn content_hash(&self) -> Result<String, ReliabilityScenarioError>
pub fn content_hash(&self) -> Result<String, ReliabilityScenarioError>
Return the stable content hash used to bind fixture evidence.
Sourcepub fn validate_scenario(
&self,
scenario: &ReliabilityScenario,
) -> Result<(), ReliabilityScenarioError>
pub fn validate_scenario( &self, scenario: &ReliabilityScenario, ) -> Result<(), ReliabilityScenarioError>
Check that a scenario only uses controls and faults exposed by this fixture.
Trait Implementations§
Source§impl Clone for ReliabilityFixtureManifest
impl Clone for ReliabilityFixtureManifest
Source§fn clone(&self) -> ReliabilityFixtureManifest
fn clone(&self) -> ReliabilityFixtureManifest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReliabilityFixtureManifest
impl Debug for ReliabilityFixtureManifest
Source§impl<'de> Deserialize<'de> for ReliabilityFixtureManifest
impl<'de> Deserialize<'de> for ReliabilityFixtureManifest
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
Auto Trait Implementations§
impl Freeze for ReliabilityFixtureManifest
impl RefUnwindSafe for ReliabilityFixtureManifest
impl Send for ReliabilityFixtureManifest
impl Sync for ReliabilityFixtureManifest
impl Unpin for ReliabilityFixtureManifest
impl UnsafeUnpin for ReliabilityFixtureManifest
impl UnwindSafe for ReliabilityFixtureManifest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more