pub enum DynamicDatasetError {
Schema,
Empty,
Provenance,
DuplicateCase {
case: String,
},
Leakage {
case: String,
identity: String,
},
NoAdversarialCase,
Case {
case: String,
detail: String,
},
}Expand description
Why a dataset was refused.
Variants§
Schema
Empty
Provenance
Name, license, labeling or limitations are empty, or real provenance lacks a field.
DuplicateCase
Leakage
The same source or request id appears in more than one split.
NoAdversarialCase
No injection-adversarial case exists.
Case
A case’s request is invalid or does not match the dataset’s task family, question schema or artifact.
Trait Implementations§
Source§impl Clone for DynamicDatasetError
impl Clone for DynamicDatasetError
Source§impl Debug for DynamicDatasetError
impl Debug for DynamicDatasetError
Source§impl Display for DynamicDatasetError
impl Display for DynamicDatasetError
impl Eq for DynamicDatasetError
Source§impl Error for DynamicDatasetError
impl Error for DynamicDatasetError
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 DynamicDatasetError
impl PartialEq for DynamicDatasetError
impl StructuralPartialEq for DynamicDatasetError
Auto Trait Implementations§
impl Freeze for DynamicDatasetError
impl RefUnwindSafe for DynamicDatasetError
impl Send for DynamicDatasetError
impl Sync for DynamicDatasetError
impl Unpin for DynamicDatasetError
impl UnsafeUnpin for DynamicDatasetError
impl UnwindSafe for DynamicDatasetError
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