pub struct SourceLocation {
pub file_path: Option<PathBuf>,
pub line: Option<u32>,
pub column: Option<u32>,
pub openapi_path: Option<String>,
}Expand description
Source location information for error reporting
Fields§
§file_path: Option<PathBuf>§line: Option<u32>§column: Option<u32>§openapi_path: Option<String>Implementations§
Source§impl SourceLocation
impl SourceLocation
pub fn new() -> Self
pub fn with_file_path(self, path: PathBuf) -> Self
pub fn with_line_column(self, line: u32, column: u32) -> Self
pub fn with_openapi_path(self, path: String) -> Self
Trait Implementations§
Source§impl Clone for SourceLocation
impl Clone for SourceLocation
Source§fn clone(&self) -> SourceLocation
fn clone(&self) -> SourceLocation
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 SourceLocation
impl Debug for SourceLocation
Source§impl Default for SourceLocation
impl Default for SourceLocation
Source§impl PartialEq for SourceLocation
impl PartialEq for SourceLocation
impl Eq for SourceLocation
impl StructuralPartialEq for SourceLocation
Auto Trait Implementations§
impl Freeze for SourceLocation
impl RefUnwindSafe for SourceLocation
impl Send for SourceLocation
impl Sync for SourceLocation
impl Unpin for SourceLocation
impl UnwindSafe for SourceLocation
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