pub enum Direction {
Roundtrip,
Encode,
Decode,
}Expand description
A case’s direction: which half of the contract it asserts.
Read this rather than string-matching direction, so a consumer’s skip
rule and this crate’s cannot disagree about what a case claims.
Variants§
Roundtrip
encode(envelope) == headers, and the parsers get the same envelope
back. Both halves assert it.
Encode
A lossy producer transform (session-name truncation, oversize-metadata
drop, percent-encoding a path the reader won’t decode back). The logical
input is FixtureCase::encode_from, not envelope.
Decode
Parser-only: malformed or missing-header input a well-behaved producer never emits. There is no encode side to assert.
Trait Implementations§
impl Copy for Direction
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnsafeUnpin for Direction
impl UnwindSafe for Direction
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