pub enum CreateConstraintError {
EquivalentConstraintExists(String),
ConflictingConstraint(String),
DuplicateName(String),
DuplicateIndexName(String),
BackingIndexConflict(String),
UnsupportedPropertyType(String),
DataViolation(String),
Unsupported(&'static str),
}Variants§
EquivalentConstraintExists(String)
22N65 — an equivalent constraint already exists.
ConflictingConstraint(String)
22N66 — a conflicting constraint already exists on the same schema.
DuplicateName(String)
22N67 — a constraint with the same name (any kind) already exists.
DuplicateIndexName(String)
22N71 — name collides with an existing index name.
BackingIndexConflict(String)
22N73 — uniqueness/key constraint would conflict with an existing range index on the same schema.
UnsupportedPropertyType(String)
22N90 — property type unsupported in constraint.
DataViolation(String)
50N11 — existing data already violates the proposed constraint.
Wraps the underlying crate::ConstraintViolation description.
Unsupported(&'static str)
Backend doesn’t support the catalog API.
Implementations§
Source§impl CreateConstraintError
impl CreateConstraintError
pub const fn gql_status(&self) -> &'static str
Trait Implementations§
Source§impl Clone for CreateConstraintError
impl Clone for CreateConstraintError
Source§fn clone(&self) -> CreateConstraintError
fn clone(&self) -> CreateConstraintError
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 CreateConstraintError
impl Debug for CreateConstraintError
Source§impl Display for CreateConstraintError
impl Display for CreateConstraintError
Source§impl Error for CreateConstraintError
impl Error for CreateConstraintError
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()
Auto Trait Implementations§
impl Freeze for CreateConstraintError
impl RefUnwindSafe for CreateConstraintError
impl Send for CreateConstraintError
impl Sync for CreateConstraintError
impl Unpin for CreateConstraintError
impl UnsafeUnpin for CreateConstraintError
impl UnwindSafe for CreateConstraintError
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