pub struct ScriptError {
pub error: String,
pub detail: Option<Value>,
pub usage: bool,
}Expand description
A script that stopped.
Fields§
§error: Stringfile:line: what went wrong.
detail: Option<Value>The failing line, the steps before it and the app’s detail, when the script ran.
usage: boolThe script could not run as written (a bad command or argument), not a failed step.
Implementations§
Trait Implementations§
Source§impl Clone for ScriptError
impl Clone for ScriptError
Source§impl Debug for ScriptError
impl Debug for ScriptError
Source§impl Display for ScriptError
impl Display for ScriptError
Source§impl Error for ScriptError
impl Error for ScriptError
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 ScriptError
impl PartialEq for ScriptError
impl StructuralPartialEq for ScriptError
Auto Trait Implementations§
impl Forget for ScriptError
impl Freeze for ScriptError
impl Move for ScriptError
impl RefUnwindSafe for ScriptError
impl Send for ScriptError
impl Sync for ScriptError
impl Unpin for ScriptError
impl UnsafeUnpin for ScriptError
impl UnwindSafe for ScriptError
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