pub struct GqlStatus { /* private fields */ }Expand description
A GQLSTATUS code: 2-character class + 3-character subclass.
Standard classes:
00successful completion01warning02no data22data exception25invalid transaction state40transaction rollback42syntax error or access rule violation
Implementations§
Source§impl GqlStatus
impl GqlStatus
Sourcepub const SUCCESS_OMITTED_RESULT: Self
pub const SUCCESS_OMITTED_RESULT: Self
00001 - successful completion, omitted result.
Sourcepub const WARNING_STRING_TRUNCATION: Self
pub const WARNING_STRING_TRUNCATION: Self
01004 - warning: string data, right truncation.
Sourcepub const WARNING_GRAPH_NOT_EXIST: Self
pub const WARNING_GRAPH_NOT_EXIST: Self
01G03 - warning: graph does not exist.
Sourcepub const WARNING_GRAPH_TYPE_NOT_EXIST: Self
pub const WARNING_GRAPH_TYPE_NOT_EXIST: Self
01G04 - warning: graph type does not exist.
Sourcepub const WARNING_NULL_ELIMINATED: Self
pub const WARNING_NULL_ELIMINATED: Self
01G11 - warning: null value eliminated in set function.
Sourcepub const DATA_EXCEPTION: Self
pub const DATA_EXCEPTION: Self
22000 - data exception, no subclass.
Sourcepub const DATA_STRING_TRUNCATION: Self
pub const DATA_STRING_TRUNCATION: Self
22001 - string data, right truncation.
Sourcepub const DATA_NUMERIC_OUT_OF_RANGE: Self
pub const DATA_NUMERIC_OUT_OF_RANGE: Self
22003 - numeric value out of range.
Sourcepub const DATA_NULL_NOT_ALLOWED: Self
pub const DATA_NULL_NOT_ALLOWED: Self
22004 - null value not allowed.
Sourcepub const DATA_DIVISION_BY_ZERO: Self
pub const DATA_DIVISION_BY_ZERO: Self
22012 - division by zero.
Sourcepub const DATA_NEGATIVE_LIMIT: Self
pub const DATA_NEGATIVE_LIMIT: Self
22G02 - negative limit value.
Sourcepub const DATA_INVALID_VALUE_TYPE: Self
pub const DATA_INVALID_VALUE_TYPE: Self
22G03 - invalid value type.
Sourcepub const DATA_VALUES_NOT_COMPARABLE: Self
pub const DATA_VALUES_NOT_COMPARABLE: Self
22G04 - values not comparable.
Sourcepub const INVALID_TX_STATE: Self
pub const INVALID_TX_STATE: Self
25000 - invalid transaction state, no subclass.
Sourcepub const INVALID_TX_ACTIVE: Self
pub const INVALID_TX_ACTIVE: Self
25G01 - active GQL-transaction.
Sourcepub const INVALID_TX_READ_ONLY: Self
pub const INVALID_TX_READ_ONLY: Self
25G03 - read-only GQL-transaction.
Sourcepub const INVALID_TX_TERMINATION: Self
pub const INVALID_TX_TERMINATION: Self
2D000 - invalid transaction termination.
Sourcepub const TX_ROLLBACK: Self
pub const TX_ROLLBACK: Self
40000 - transaction rollback, no subclass.
Sourcepub const TX_COMPLETION_UNKNOWN: Self
pub const TX_COMPLETION_UNKNOWN: Self
40003 - statement completion unknown.
Sourcepub const SYNTAX_ERROR: Self
pub const SYNTAX_ERROR: Self
42000 - syntax error or access rule violation, no subclass.
Sourcepub const SYNTAX_INVALID: Self
pub const SYNTAX_INVALID: Self
42001 - invalid syntax.
Sourcepub const SYNTAX_INVALID_REFERENCE: Self
pub const SYNTAX_INVALID_REFERENCE: Self
42002 - invalid reference.
Sourcepub const DEPENDENT_OBJECT_ERROR: Self
pub const DEPENDENT_OBJECT_ERROR: Self
G1000 - dependent object error, no subclass.
Sourcepub const GRAPH_TYPE_VIOLATION: Self
pub const GRAPH_TYPE_VIOLATION: Self
G2000 - graph type violation.
Sourcepub fn from_str(s: &str) -> Option<Self>
pub fn from_str(s: &str) -> Option<Self>
Creates a GqlStatus from a 5-character string slice.
Returns None if the string is not exactly 5 ASCII characters.
Sourcepub fn class_code(&self) -> &str
pub fn class_code(&self) -> &str
Returns the 2-character class code (e.g., "00", "42").
Sourcepub fn subclass_code(&self) -> &str
pub fn subclass_code(&self) -> &str
Returns the 3-character subclass code (e.g., "000", "001").
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
True if this is a successful completion (class 00).
Sourcepub fn is_warning(&self) -> bool
pub fn is_warning(&self) -> bool
True if this is a warning (class 01).
Sourcepub fn is_no_data(&self) -> bool
pub fn is_no_data(&self) -> bool
True if this is a no-data condition (class 02).
Sourcepub fn is_exception(&self) -> bool
pub fn is_exception(&self) -> bool
True if this is an exception condition (not success, warning, or no-data).
Trait Implementations§
impl Eq for GqlStatus
impl StructuralPartialEq for GqlStatus
Auto Trait Implementations§
impl Freeze for GqlStatus
impl RefUnwindSafe for GqlStatus
impl Send for GqlStatus
impl Sync for GqlStatus
impl Unpin for GqlStatus
impl UnsafeUnpin for GqlStatus
impl UnwindSafe for GqlStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.