pub struct HaysonRelationRestrictError {
pub relation: String,
pub table: String,
pub key: String,
pub referencing_table: String,
pub referencing_field: String,
pub referencing: usize,
}Expand description
A delete refused because an on_delete: 'restrict' relation still has a live record
referencing the key being deleted. referencing is the count of records found still pointing
at it — capped at the same sample the diagnostic report uses, never a full scan’s whole count.
Fields§
§relation: String§table: String§key: String§referencing_table: String§referencing_field: String§referencing: usizeTrait Implementations§
Source§impl Clone for HaysonRelationRestrictError
impl Clone for HaysonRelationRestrictError
Source§impl Debug for HaysonRelationRestrictError
impl Debug for HaysonRelationRestrictError
impl Eq for HaysonRelationRestrictError
Source§impl Error for HaysonRelationRestrictError
impl Error for HaysonRelationRestrictError
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()
impl StructuralPartialEq for HaysonRelationRestrictError
Auto Trait Implementations§
impl Freeze for HaysonRelationRestrictError
impl RefUnwindSafe for HaysonRelationRestrictError
impl Send for HaysonRelationRestrictError
impl Sync for HaysonRelationRestrictError
impl Unpin for HaysonRelationRestrictError
impl UnsafeUnpin for HaysonRelationRestrictError
impl UnwindSafe for HaysonRelationRestrictError
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.