#[repr(u8)]pub enum ArchivedCompensationHint{
UniqueViolation {
field: <String as Archive>::Archived,
conflicting_value: <String as Archive>::Archived,
},
ForeignKeyMissing {
referenced_id: <String as Archive>::Archived,
},
PermissionDenied,
RateLimited {
retry_after_ms: <u64 as Archive>::Archived,
},
SchemaViolation {
field: <String as Archive>::Archived,
reason: <String as Archive>::Archived,
},
Custom {
constraint: <String as Archive>::Archived,
detail: <String as Archive>::Archived,
},
IntegrityViolation,
}Expand description
An archived CompensationHint
Variants§
UniqueViolation
The archived counterpart of CompensationHint::UniqueViolation
Fields
field: <String as Archive>::ArchivedThe archived counterpart of CompensationHint::UniqueViolation::field
conflicting_value: <String as Archive>::ArchivedThe archived counterpart of CompensationHint::UniqueViolation::conflicting_value
ForeignKeyMissing
The archived counterpart of CompensationHint::ForeignKeyMissing
Fields
referenced_id: <String as Archive>::ArchivedThe archived counterpart of CompensationHint::ForeignKeyMissing::referenced_id
PermissionDenied
The archived counterpart of CompensationHint::PermissionDenied
RateLimited
The archived counterpart of CompensationHint::RateLimited
Fields
retry_after_ms: <u64 as Archive>::ArchivedThe archived counterpart of CompensationHint::RateLimited::retry_after_ms
SchemaViolation
The archived counterpart of CompensationHint::SchemaViolation
Fields
field: <String as Archive>::ArchivedThe archived counterpart of CompensationHint::SchemaViolation::field
reason: <String as Archive>::ArchivedThe archived counterpart of CompensationHint::SchemaViolation::reason
Custom
The archived counterpart of CompensationHint::Custom
Fields
constraint: <String as Archive>::ArchivedThe archived counterpart of CompensationHint::Custom::constraint
detail: <String as Archive>::ArchivedThe archived counterpart of CompensationHint::Custom::detail
IntegrityViolation
The archived counterpart of CompensationHint::IntegrityViolation
Trait Implementations§
Source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedCompensationHint
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedCompensationHint
impl Portable for ArchivedCompensationHint
Auto Trait Implementations§
impl Freeze for ArchivedCompensationHint
impl RefUnwindSafe for ArchivedCompensationHint
impl Send for ArchivedCompensationHint
impl Sync for ArchivedCompensationHint
impl !Unpin for ArchivedCompensationHint
impl !UnsafeUnpin for ArchivedCompensationHint
impl UnwindSafe for ArchivedCompensationHint
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.