pub struct ClassOptions {
pub layout: Option<&'static str>,
pub title: Option<&'static str>,
pub transition: Option<&'static str>,
pub lazy: bool,
pub defer: bool,
pub isolate: bool,
}Expand description
The options a class-level #[component(..)] attribute declares.
Fields§
§layout: Option<&'static str>The layout a page component renders inside, or None for the configured default.
title: Option<&'static str>The page title a page component sets.
transition: Option<&'static str>The Alpine transition the component’s updates use.
lazy: boolWhether the component renders a placeholder first and loads itself afterwards.
defer: boolWhether the component loads itself after the page has loaded.
isolate: boolWhether the component’s requests skip the components around it.
Trait Implementations§
Source§impl Clone for ClassOptions
impl Clone for ClassOptions
impl Copy for ClassOptions
Source§impl Debug for ClassOptions
impl Debug for ClassOptions
Source§impl Default for ClassOptions
impl Default for ClassOptions
impl Eq for ClassOptions
Source§impl PartialEq for ClassOptions
impl PartialEq for ClassOptions
impl StructuralPartialEq for ClassOptions
Auto Trait Implementations§
impl Forget for ClassOptions
impl Freeze for ClassOptions
impl Move for ClassOptions
impl RefUnwindSafe for ClassOptions
impl Send for ClassOptions
impl Sync for ClassOptions
impl Unpin for ClassOptions
impl UnsafeUnpin for ClassOptionswhere
&'static str: UnsafeUnpin,
impl UnwindSafe for ClassOptionswhere
&'static str: UnwindSafe,
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.