pub struct ConstraintDiagnostic { /* private fields */ }Expand description
ConstraintDiagnostic
One bounded accepted-constraint failure carried through runtime and SQL boundaries. It is a projection of accepted identity, not a second schema authority, and its compact error code remains the classification owner.
Implementations§
Source§impl ConstraintDiagnostic
impl ConstraintDiagnostic
Sourcepub const fn constraint_id(&self) -> u32
pub const fn constraint_id(&self) -> u32
Return the stable accepted constraint identity.
Sourcepub const fn constraint_name(&self) -> &str
pub const fn constraint_name(&self) -> &str
Borrow the stable accepted constraint name.
Sourcepub const fn constraint_kind(&self) -> ConstraintDiagnosticKind
pub const fn constraint_kind(&self) -> ConstraintDiagnosticKind
Return the accepted constraint family.
Sourcepub fn primary_key(&self) -> Option<&[u8]>
pub fn primary_key(&self) -> Option<&[u8]>
Borrow the canonical persisted primary-key bytes when available.
Sourcepub const fn field_paths(&self) -> &[String]
pub const fn field_paths(&self) -> &[String]
Borrow bounded accepted field paths implicated by the failure.
Sourcepub const fn context(&self) -> ConstraintDiagnosticContext
pub const fn context(&self) -> ConstraintDiagnosticContext
Return the boundary that observed the failure.
Sourcepub const fn error_code(&self) -> ErrorCode
pub const fn error_code(&self) -> ErrorCode
Return the compact stable error code for this exact failure.
Sourcepub const fn error_class(&self) -> ErrorClass
pub const fn error_class(&self) -> ErrorClass
Return the broad public error class derived from the compact code.
Trait Implementations§
Source§impl CandidType for ConstraintDiagnostic
impl CandidType for ConstraintDiagnostic
Source§impl Clone for ConstraintDiagnostic
impl Clone for ConstraintDiagnostic
Source§fn clone(&self) -> ConstraintDiagnostic
fn clone(&self) -> ConstraintDiagnostic
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 ConstraintDiagnostic
impl Debug for ConstraintDiagnostic
Source§impl<'de> Deserialize<'de> for ConstraintDiagnostic
impl<'de> Deserialize<'de> for ConstraintDiagnostic
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 ConstraintDiagnostic
Source§impl PartialEq for ConstraintDiagnostic
impl PartialEq for ConstraintDiagnostic
impl StructuralPartialEq for ConstraintDiagnostic
Auto Trait Implementations§
impl Freeze for ConstraintDiagnostic
impl RefUnwindSafe for ConstraintDiagnostic
impl Send for ConstraintDiagnostic
impl Sync for ConstraintDiagnostic
impl Unpin for ConstraintDiagnostic
impl UnsafeUnpin for ConstraintDiagnostic
impl UnwindSafe for ConstraintDiagnostic
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