pub struct ResidentRejection {
pub kind: ResidentRejectKind,
pub construct: String,
pub context: String,
}Expand description
A typed fail-closed rejection: which rule was violated, the offending construct, and the surrounding context (for diagnostics).
Fields§
§kind: ResidentRejectKind§construct: String§context: StringImplementations§
Source§impl ResidentRejection
impl ResidentRejection
Sourcepub fn into_error(self) -> XlogError
pub fn into_error(self) -> XlogError
Convert to the engine’s unified error type while preserving the kind +
construct + context in the message for callers that only see XlogError.
Trait Implementations§
Source§impl Clone for ResidentRejection
impl Clone for ResidentRejection
Source§fn clone(&self) -> ResidentRejection
fn clone(&self) -> ResidentRejection
Returns a duplicate of the value. Read more
1.0.0 · 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 ResidentRejection
impl Debug for ResidentRejection
Source§impl PartialEq for ResidentRejection
impl PartialEq for ResidentRejection
impl Eq for ResidentRejection
impl StructuralPartialEq for ResidentRejection
Auto Trait Implementations§
impl Freeze for ResidentRejection
impl RefUnwindSafe for ResidentRejection
impl Send for ResidentRejection
impl Sync for ResidentRejection
impl Unpin for ResidentRejection
impl UnsafeUnpin for ResidentRejection
impl UnwindSafe for ResidentRejection
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> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more