pub struct SchemaErrorDto {
pub code: String,
pub message: String,
pub line: u32,
pub column: u32,
pub length: u32,
pub severity: u8,
}Expand description
One structured parse-or-validate diagnostic.
Fields§
§code: String§message: String§line: u321-based; 0 when no source position is known.
column: u32§length: u32§severity: u80 info / 1 warning / 2 error. Always 2 in v1.
Trait Implementations§
Source§impl Debug for SchemaErrorDto
impl Debug for SchemaErrorDto
Source§impl From<&SchemaValidationErrorWire> for SchemaErrorDto
impl From<&SchemaValidationErrorWire> for SchemaErrorDto
Source§fn from(e: &SchemaValidationErrorWire) -> Self
fn from(e: &SchemaValidationErrorWire) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SchemaErrorDto
impl RefUnwindSafe for SchemaErrorDto
impl Send for SchemaErrorDto
impl Sync for SchemaErrorDto
impl Unpin for SchemaErrorDto
impl UnsafeUnpin for SchemaErrorDto
impl UnwindSafe for SchemaErrorDto
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