pub enum StepKind {
PassThrough,
Renamed {
from: Option<&'static str>,
to: Option<&'static str>,
},
Dropped {
from: Option<&'static str>,
},
Synthesised {
to: Option<&'static str>,
},
}Expand description
The reason a step fired.
Each variant is a statement a reviewer can act on. The trivial case
(PassThrough) is recorded when the report needs to show what was
carried so the absence of any other step is meaningful; a translation
that did not need to record anything reports an empty
CrossProtocolReport.
Variants§
PassThrough
A field round-tripped unchanged.
Renamed
A field was mapped onto a different field that carries the same information. The report names which side lost its native shape.
Fields
Dropped
A field has no peer-side shape and the value was dropped. The caller will see the step and decide whether the drop is acceptable.
Synthesised
A field was filled with a placeholder because the source had no shape to map. The placeholder is documented on the function that produced it.
Trait Implementations§
impl Eq for StepKind
impl StructuralPartialEq for StepKind
Auto Trait Implementations§
impl Freeze for StepKind
impl RefUnwindSafe for StepKind
impl Send for StepKind
impl Sync for StepKind
impl Unpin for StepKind
impl UnsafeUnpin for StepKind
impl UnwindSafe for StepKind
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