pub enum GraphIdentityRejectionReason {
Empty,
SurroundingWhitespace,
ControlCharacters,
Oversized,
ReservedNamespace,
Contract,
}Expand description
Stable coarse category for a rejected parser-derived graph identity.
Variants§
Empty
The identity was empty or whitespace-only.
SurroundingWhitespace
The identity had surrounding whitespace.
ControlCharacters
The identity contained a control character.
Oversized
The identity exceeded the graph identity byte bound.
ReservedNamespace
The identity used the reserved derived-scope namespace.
Contract
A derived identity contract failed for another reason.
Implementations§
Source§impl GraphIdentityRejectionReason
impl GraphIdentityRejectionReason
Sourcepub fn from_error(error: &GraphContractError) -> Self
pub fn from_error(error: &GraphContractError) -> Self
Classify one graph-contract failure without retaining rejected text.
Trait Implementations§
Source§impl Clone for GraphIdentityRejectionReason
impl Clone for GraphIdentityRejectionReason
Source§fn clone(&self) -> GraphIdentityRejectionReason
fn clone(&self) -> GraphIdentityRejectionReason
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 moreimpl Copy for GraphIdentityRejectionReason
Source§impl Debug for GraphIdentityRejectionReason
impl Debug for GraphIdentityRejectionReason
Source§impl<'de> Deserialize<'de> for GraphIdentityRejectionReason
impl<'de> Deserialize<'de> for GraphIdentityRejectionReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GraphIdentityRejectionReason
Source§impl Hash for GraphIdentityRejectionReason
impl Hash for GraphIdentityRejectionReason
Source§impl Ord for GraphIdentityRejectionReason
impl Ord for GraphIdentityRejectionReason
Source§fn cmp(&self, other: &GraphIdentityRejectionReason) -> Ordering
fn cmp(&self, other: &GraphIdentityRejectionReason) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GraphIdentityRejectionReason
impl PartialEq for GraphIdentityRejectionReason
Source§fn eq(&self, other: &GraphIdentityRejectionReason) -> bool
fn eq(&self, other: &GraphIdentityRejectionReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GraphIdentityRejectionReason
impl PartialOrd for GraphIdentityRejectionReason
impl StructuralPartialEq for GraphIdentityRejectionReason
Auto Trait Implementations§
impl Freeze for GraphIdentityRejectionReason
impl RefUnwindSafe for GraphIdentityRejectionReason
impl Send for GraphIdentityRejectionReason
impl Sync for GraphIdentityRejectionReason
impl Unpin for GraphIdentityRejectionReason
impl UnsafeUnpin for GraphIdentityRejectionReason
impl UnwindSafe for GraphIdentityRejectionReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.