pub struct ErrorContext {
pub tool_id: Option<String>,
pub parameters: Option<String>,
pub server_id: Option<String>,
pub stack_trace: Option<String>,
}Expand description
Error context for detailed error reporting
Fields§
§tool_id: Option<String>§parameters: Option<String>§server_id: Option<String>§stack_trace: Option<String>Implementations§
Source§impl ErrorContext
impl ErrorContext
Sourcepub fn with_tool_id(self, tool_id: String) -> Self
pub fn with_tool_id(self, tool_id: String) -> Self
Sets the tool ID
Sourcepub fn with_parameters(self, parameters: String) -> Self
pub fn with_parameters(self, parameters: String) -> Self
Sets the parameters
Sourcepub fn with_server_id(self, server_id: String) -> Self
pub fn with_server_id(self, server_id: String) -> Self
Sets the server ID
Sourcepub fn with_stack_trace(self, stack_trace: String) -> Self
pub fn with_stack_trace(self, stack_trace: String) -> Self
Sets the stack trace
Trait Implementations§
Source§impl Clone for ErrorContext
impl Clone for ErrorContext
Source§fn clone(&self) -> ErrorContext
fn clone(&self) -> ErrorContext
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 ErrorContext
impl Debug for ErrorContext
Source§impl Default for ErrorContext
impl Default for ErrorContext
Auto Trait Implementations§
impl Freeze for ErrorContext
impl RefUnwindSafe for ErrorContext
impl Send for ErrorContext
impl Sync for ErrorContext
impl Unpin for ErrorContext
impl UnwindSafe for ErrorContext
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