pub enum ScenarioScriptError {
Empty,
TooManySteps,
ExpectedPagination,
InvalidPageSequence,
PaginationMetadataChanged,
PaginationDidNotFinish,
ExpectedAction,
ActionProgressDecreased,
ActionFinishedEarly,
ActionDidNotFinish,
Exhausted,
}Expand description
Invalid or exhausted deterministic scenario script.
Variants§
Empty
A script requires at least one response fixture.
TooManySteps
The script exceeds the bounded dynamic-record limit.
ExpectedPagination
A pagination script contains a non-pagination fixture.
InvalidPageSequence
Pagination pages must begin at one and increase by one.
PaginationMetadataChanged
Page size, entry total, and last page must remain stable.
PaginationDidNotFinish
The final pagination fixture must represent the last page.
ExpectedAction
An action script contains a non-action fixture.
ActionProgressDecreased
Action progress must not decrease.
ActionFinishedEarly
Only the final action fixture may be terminal.
ActionDidNotFinish
The final action fixture must be terminal.
Exhausted
No scripted response remains.
Trait Implementations§
Source§impl Clone for ScenarioScriptError
impl Clone for ScenarioScriptError
Source§fn clone(&self) -> ScenarioScriptError
fn clone(&self) -> ScenarioScriptError
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 moreimpl Copy for ScenarioScriptError
Source§impl Debug for ScenarioScriptError
impl Debug for ScenarioScriptError
Source§impl Display for ScenarioScriptError
impl Display for ScenarioScriptError
impl Eq for ScenarioScriptError
Source§impl Error for ScenarioScriptError
impl Error for ScenarioScriptError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ScenarioScriptError
impl PartialEq for ScenarioScriptError
impl StructuralPartialEq for ScenarioScriptError
Auto Trait Implementations§
impl Freeze for ScenarioScriptError
impl RefUnwindSafe for ScenarioScriptError
impl Send for ScenarioScriptError
impl Sync for ScenarioScriptError
impl Unpin for ScenarioScriptError
impl UnsafeUnpin for ScenarioScriptError
impl UnwindSafe for ScenarioScriptError
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