pub struct JsCantonError {
pub code: String,
pub cause: String,
pub correlation_id: Option<String>,
pub trace_id: Option<String>,
pub context: HashMap<String, String>,
pub resources: Option<Vec<Vec<String>>>,
pub error_category: i32,
pub grpc_code_value: Option<i32>,
pub retry_info: Option<String>,
pub definite_answer: Option<bool>,
}
Fields§
§code: String
§cause: String
§correlation_id: Option<String>
§trace_id: Option<String>
§context: HashMap<String, String>
§resources: Option<Vec<Vec<String>>>
§error_category: i32
§grpc_code_value: Option<i32>
§retry_info: Option<String>
§definite_answer: Option<bool>
Implementations§
Trait Implementations§
Source§impl Clone for JsCantonError
impl Clone for JsCantonError
Source§fn clone(&self) -> JsCantonError
fn clone(&self) -> JsCantonError
Returns a duplicate 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 JsCantonError
impl Debug for JsCantonError
Source§impl Default for JsCantonError
impl Default for JsCantonError
Source§fn default() -> JsCantonError
fn default() -> JsCantonError
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JsCantonError
impl<'de> Deserialize<'de> for JsCantonError
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 PartialEq for JsCantonError
impl PartialEq for JsCantonError
Source§impl Serialize for JsCantonError
impl Serialize for JsCantonError
impl StructuralPartialEq for JsCantonError
Auto Trait Implementations§
impl Freeze for JsCantonError
impl RefUnwindSafe for JsCantonError
impl Send for JsCantonError
impl Sync for JsCantonError
impl Unpin for JsCantonError
impl UnwindSafe for JsCantonError
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