pub struct PreviewRegistration {
pub slug: &'static str,
pub label: &'static str,
pub section: &'static str,
pub section_priority: u16,
pub category: &'static str,
pub category_priority: u16,
pub category_default_collapsed: bool,
pub group: &'static str,
pub group_priority: u16,
pub nav_item: bool,
pub icon: Icon,
pub render: fn() -> AnyView,
}Expand description
Static metadata for a generated motion preview page.
Fields§
§slug: &'static str§label: &'static str§section: &'static str§section_priority: u16§category: &'static str§category_priority: u16§category_default_collapsed: bool§group: &'static str§group_priority: u16§icon: Icon§render: fn() -> AnyViewTrait Implementations§
impl Collect for PreviewRegistration
Auto Trait Implementations§
impl Freeze for PreviewRegistration
impl RefUnwindSafe for PreviewRegistration
impl Send for PreviewRegistration
impl Sync for PreviewRegistration
impl Unpin for PreviewRegistration
impl UnsafeUnpin for PreviewRegistration
impl UnwindSafe for PreviewRegistration
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.