Struct bigml::resource::execution::ExecutionStatus
source · #[non_exhaustive]pub struct ExecutionStatus {
pub code: StatusCode,
pub message: String,
pub elapsed: Option<u64>,
pub progress: Option<f32>,
pub call_stack: Option<Vec<Option<SourceLocation>>>,
pub cause: Option<Cause>,
pub elapsed_times: HashMap<String, u64>,
pub extra: HashMap<String, String>,
pub instruction: Option<Instruction>,
pub source_location: Option<SourceLocation>,
}
Expand description
Execution-specific status information.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.code: StatusCode
Status code.
message: String
Human-readable status message.
elapsed: Option<u64>
Number of milliseconds which were needed to create this resource.
progress: Option<f32>
Number between 0.0 and 1.0 representing the progress of creating this resource.
call_stack: Option<Vec<Option<SourceLocation>>>
The call stack, if one is present.
cause: Option<Cause>
The cause of the error.
elapsed_times: HashMap<String, u64>
The number of milliseconds elapsed during different phases of execution.
extra: HashMap<String, String>
Extra information about errors, typically mapping field names to field-specific error messages.
instruction: Option<Instruction>
The instruction at which an error occurred.
source_location: Option<SourceLocation>
(Undocumented) Where are we in the script’s execution? This is particularly useful when an error occurs.
Implementations§
source§impl ExecutionStatus
impl ExecutionStatus
sourcepub fn full_message(&self) -> String
pub fn full_message(&self) -> String
The message
for this status, plus the cause
and any other useful
information that might be present.
Trait Implementations§
source§impl Clone for ExecutionStatus
impl Clone for ExecutionStatus
source§fn clone(&self) -> ExecutionStatus
fn clone(&self) -> ExecutionStatus
Returns a copy of the value. Read more
1.0.0 · 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 ExecutionStatus
impl Debug for ExecutionStatus
source§impl<'de> Deserialize<'de> for ExecutionStatus
impl<'de> Deserialize<'de> for ExecutionStatus
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for ExecutionStatus
impl Serialize for ExecutionStatus
Auto Trait Implementations§
impl RefUnwindSafe for ExecutionStatus
impl Send for ExecutionStatus
impl Sync for ExecutionStatus
impl Unpin for ExecutionStatus
impl UnwindSafe for ExecutionStatus
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