#[non_exhaustive]pub enum Site {
Panel,
Registration,
Tenancy,
Table,
Form,
View,
Relation(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.
Table
ResourceDef::table.
Form
ResourceDef::form, checked against the record form.
View
ResourceDef::view.
Relation(String)
The ResourceDef::relation to the resource with this slug, or this type when the panel
does not register it.
Trait Implementations§
impl Eq for Site
impl StructuralPartialEq for Site
Auto Trait Implementations§
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
impl<T> CloneAny for T
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.