#[repr(u8)]pub enum ArchivedViolationType{
RlsPolicyViolation {
policy_name: <String as Archive>::Archived,
},
UniqueViolation {
field: <String as Archive>::Archived,
value: <String as Archive>::Archived,
},
ForeignKeyMissing {
referenced_id: <String as Archive>::Archived,
},
PermissionDenied,
RateLimited,
TokenExpired,
SchemaViolation {
field: <String as Archive>::Archived,
reason: <String as Archive>::Archived,
},
ConstraintViolation {
detail: <String as Archive>::Archived,
},
}Expand description
An archived ViolationType
Variants§
RlsPolicyViolation
The archived counterpart of ViolationType::RlsPolicyViolation
Fields
policy_name: <String as Archive>::ArchivedThe archived counterpart of ViolationType::RlsPolicyViolation::policy_name
UniqueViolation
The archived counterpart of ViolationType::UniqueViolation
Fields
field: <String as Archive>::ArchivedThe archived counterpart of ViolationType::UniqueViolation::field
value: <String as Archive>::ArchivedThe archived counterpart of ViolationType::UniqueViolation::value
ForeignKeyMissing
The archived counterpart of ViolationType::ForeignKeyMissing
Fields
referenced_id: <String as Archive>::ArchivedThe archived counterpart of ViolationType::ForeignKeyMissing::referenced_id
PermissionDenied
The archived counterpart of ViolationType::PermissionDenied
RateLimited
The archived counterpart of ViolationType::RateLimited
TokenExpired
The archived counterpart of ViolationType::TokenExpired
SchemaViolation
The archived counterpart of ViolationType::SchemaViolation
Fields
field: <String as Archive>::ArchivedThe archived counterpart of ViolationType::SchemaViolation::field
reason: <String as Archive>::ArchivedThe archived counterpart of ViolationType::SchemaViolation::reason
ConstraintViolation
The archived counterpart of ViolationType::ConstraintViolation
Fields
detail: <String as Archive>::ArchivedThe archived counterpart of ViolationType::ConstraintViolation::detail
Trait Implementations§
Source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedViolationType
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedViolationType
impl Portable for ArchivedViolationType
Auto Trait Implementations§
impl Freeze for ArchivedViolationType
impl RefUnwindSafe for ArchivedViolationType
impl Send for ArchivedViolationType
impl Sync for ArchivedViolationType
impl !Unpin for ArchivedViolationType
impl !UnsafeUnpin for ArchivedViolationType
impl UnwindSafe for ArchivedViolationType
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.