pub enum CreateIndexError {
EquivalentIndexExists(IndexDefinition),
DuplicateName(IndexDefinition),
Unsupported(&'static str),
}Variants§
EquivalentIndexExists(IndexDefinition)
22N70 — an index with the same schema and kind already exists.
DuplicateName(IndexDefinition)
22N71 — an index with the same name (any kind) already exists.
Unsupported(&'static str)
Backend doesn’t support the catalog API.
Implementations§
Source§impl CreateIndexError
impl CreateIndexError
Sourcepub const fn gql_status(&self) -> &'static str
pub const fn gql_status(&self) -> &'static str
GQLSTATUS-shaped code mapping. Used by the database layer to surface conflicts via the structured error result type so bindings can match on a stable string.
Trait Implementations§
Source§impl Clone for CreateIndexError
impl Clone for CreateIndexError
Source§fn clone(&self) -> CreateIndexError
fn clone(&self) -> CreateIndexError
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 CreateIndexError
impl Debug for CreateIndexError
Source§impl Display for CreateIndexError
impl Display for CreateIndexError
Source§impl Error for CreateIndexError
impl Error for CreateIndexError
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 CreateIndexError
impl RefUnwindSafe for CreateIndexError
impl Send for CreateIndexError
impl Sync for CreateIndexError
impl Unpin for CreateIndexError
impl UnsafeUnpin for CreateIndexError
impl UnwindSafe for CreateIndexError
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