pub struct LastError {
pub error: Rc<Value>,
pub tetraplet: Option<Rc<SecurityTetraplet>>,
}
Expand description
This struct is intended to track the last arisen error. LastError is essentially a scalar value with support of lambda expressions. The only differences from a scalar are
- it’s accessed by %last_error% literal
- if it’s unset before the usage, JValue::Null will be used without join behaviour
- it’s a global scalar, meaning that fold and new scopes doesn’t apply for it
Fields§
§error: Rc<Value>
Error object that represents the last occurred error.
tetraplet: Option<Rc<SecurityTetraplet>>
Tetraplet that identify host where the error occurred.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LastError
impl<'de> Deserialize<'de> for LastError
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