#[non_exhaustive]pub enum Site {
Panel,
Registration,
Tenancy,
SoftDelete,
FieldAccess(String),
RecordTitle,
Table,
Form,
Detail,
Relation(String),
RecordPage(String),
}Expand description
The part of a declaration a DeclarationError is in.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Panel
The panel’s own configuration: its prefix, served directories, assets and auth.
Registration
The resource or page itself: its registration, slug, actions or create columns, or a second home page.
Tenancy
ResourceDef::tenancy.
SoftDelete
ResourceDef::soft_delete.
FieldAccess(String)
The ResourceDef::field_access over this field.
RecordTitle
ResourceDef::record_title.
Table
ResourceDef::table.
Form
ResourceDef::form, checked against the record form.
Detail
ResourceDef::detail.
Relation(String)
The ResourceDef::relation to the resource with this slug, or this type when the panel
does not register it.
RecordPage(String)
The ResourceDef::record_page at this slug.
Trait Implementations§
Source§impl Display for Site
How an error message names the site after its resource: nothing for the resource itself.
impl Display for Site
How an error message names the site after its resource: nothing for the resource itself.
impl Eq for Site
impl StructuralPartialEq for Site
Auto Trait Implementations§
impl Forget for Site
impl Freeze for Site
impl RefUnwindSafe for Site
impl Send for Site
impl Sync for Site
impl Unpin for Site
impl UnsafeUnpin for Site
impl UnwindSafe for Site
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.