pub struct ErrorContext {
pub file_path: Option<String>,
pub line_number: Option<u32>,
pub element_path: Option<String>,
pub operation: Option<String>,
}Fields§
§file_path: Option<String>§line_number: Option<u32>§element_path: Option<String>§operation: Option<String>Implementations§
Source§impl ErrorContext
impl ErrorContext
pub fn new() -> Self
pub fn with_file_path(self, path: &str) -> Self
pub fn with_line_number(self, line: u32) -> Self
pub fn with_element_path(self, path: &str) -> Self
pub fn with_operation(self, op: &str) -> Self
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 (const: unstable) · 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
Source§fn default() -> ErrorContext
fn default() -> ErrorContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ErrorContext
impl RefUnwindSafe for ErrorContext
impl Send for ErrorContext
impl Sync for ErrorContext
impl Unpin for ErrorContext
impl UnsafeUnpin 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