pub struct TableRefusal {
pub row: Option<usize>,
pub column: Option<usize>,
pub code: String,
pub message: String,
pub span: Option<(usize, usize)>,
}Expand description
One refused table, row or cell.
Fields§
§row: Option<usize>The one-based row; None for the table.
column: Option<usize>The one-based column; None for a row or the table.
code: StringA short, stable name for the kind: malformed-table,
invalid-header, duplicate-column, no-key-column,
ragged-row, empty-key, unknown-key, duplicate-key,
ambiguous-key, or the binding error code of a refused write
(type-mismatch, invalid-value, …).
message: StringWhy, in words.
span: Option<(usize, usize)>The byte range of a header that does not parse.
Trait Implementations§
Source§impl Clone for TableRefusal
impl Clone for TableRefusal
Source§fn clone(&self) -> TableRefusal
fn clone(&self) -> TableRefusal
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 TableRefusal
impl Debug for TableRefusal
impl Eq for TableRefusal
Source§impl PartialEq for TableRefusal
impl PartialEq for TableRefusal
impl StructuralPartialEq for TableRefusal
Auto Trait Implementations§
impl Freeze for TableRefusal
impl RefUnwindSafe for TableRefusal
impl Send for TableRefusal
impl Sync for TableRefusal
impl Unpin for TableRefusal
impl UnsafeUnpin for TableRefusal
impl UnwindSafe for TableRefusal
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.