pub enum NaryRelationError {
EmptySchema,
BlankColumnName {
index: usize,
},
DuplicateColumn {
column: String,
},
RowArityMismatch {
expected: usize,
actual: usize,
},
UnknownColumn {
column: String,
},
MissingColumn {
column: String,
},
UnexpectedColumn {
column: String,
},
SchemaMismatch {
left: Vec<String>,
right: Vec<String>,
},
}Expand description
Errors returned by n-ary relation validation and schema-aware operations. Errors returned by schema-aware n-ary relation operations.
Variants§
EmptySchema
The provided schema has no columns.
BlankColumnName
A column name is blank or only whitespace.
DuplicateColumn
A column name is repeated where uniqueness is required.
RowArityMismatch
A row does not match the relation arity.
Fields
UnknownColumn
An operation referenced a column that is not present in the schema.
MissingColumn
A named-row input omitted a column required by the schema.
UnexpectedColumn
A named-row input provided a column that is not in the schema.
SchemaMismatch
An operation requires identical schemas but received different ones.
Trait Implementations§
Source§impl Clone for NaryRelationError
impl Clone for NaryRelationError
Source§fn clone(&self) -> NaryRelationError
fn clone(&self) -> NaryRelationError
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 NaryRelationError
impl Debug for NaryRelationError
Source§impl Display for NaryRelationError
impl Display for NaryRelationError
Source§impl Error for NaryRelationError
impl Error for NaryRelationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for NaryRelationError
impl PartialEq for NaryRelationError
impl Eq for NaryRelationError
impl StructuralPartialEq for NaryRelationError
Auto Trait Implementations§
impl Freeze for NaryRelationError
impl RefUnwindSafe for NaryRelationError
impl Send for NaryRelationError
impl Sync for NaryRelationError
impl Unpin for NaryRelationError
impl UnsafeUnpin for NaryRelationError
impl UnwindSafe for NaryRelationError
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