pub struct StubClause {
pub surface: Vec<String>,
pub outcome: String,
pub payload: Option<StubPayload>,
pub span: SourceSpan,
}Expand description
stub <surface…> <outcome> [record | string]. The surface path and outcome
are kept as tokens; provider-specific validation happens in the harness.
Fields§
§surface: Vec<String>Surface path segments (each may be dotted, e.g. script.run); the trailing
segment is the outcome.
outcome: String§payload: Option<StubPayload>§span: SourceSpanTrait Implementations§
Source§impl Clone for StubClause
impl Clone for StubClause
Source§fn clone(&self) -> StubClause
fn clone(&self) -> StubClause
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 StubClause
impl Debug for StubClause
impl Eq for StubClause
Source§impl PartialEq for StubClause
impl PartialEq for StubClause
impl StructuralPartialEq for StubClause
Auto Trait Implementations§
impl Freeze for StubClause
impl RefUnwindSafe for StubClause
impl Send for StubClause
impl Sync for StubClause
impl Unpin for StubClause
impl UnsafeUnpin for StubClause
impl UnwindSafe for StubClause
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