pub struct ComponentFactory {
pub name: &'static str,
pub update: UpdateFn,
pub mount: MountFn,
pub mount_with_props: MountWithPropsFn,
pub url_fields: &'static [UrlFieldMeta],
pub event_listeners: &'static [EventListenerMeta],
pub component_event_listeners: &'static [EventListenerMeta],
pub locked_fields: &'static [&'static str],
pub layout: Option<&'static str>,
}Fields§
§name: &'static str§update: UpdateFn§mount: MountFn§mount_with_props: MountWithPropsFn§url_fields: &'static [UrlFieldMeta]§event_listeners: &'static [EventListenerMeta]Event listeners registered via #[on("event")] on action methods.
component_event_listeners: &'static [EventListenerMeta]Event listeners registered via #[on("event")] on the component type.
locked_fields: &'static [&'static str]Field names protected by #[locked] — client-side updates to these are rejected.
layout: Option<&'static str>Named layout for this component (from #[layout("name")]).
Implementations§
Source§impl ComponentFactory
impl ComponentFactory
pub const fn new( name: &'static str, update: UpdateFn, mount: MountFn, mount_with_props: MountWithPropsFn, url_fields: &'static [UrlFieldMeta], event_listeners: &'static [EventListenerMeta], component_event_listeners: &'static [EventListenerMeta], locked_fields: &'static [&'static str], layout: Option<&'static str>, ) -> Self
Trait Implementations§
impl Collect for ComponentFactory
Auto Trait Implementations§
impl Forget for ComponentFactory
impl Freeze for ComponentFactory
impl Move for ComponentFactory
impl RefUnwindSafe for ComponentFactory
impl Send for ComponentFactory
impl Sync for ComponentFactory
impl Unpin for ComponentFactory
impl UnsafeUnpin for ComponentFactory
impl UnwindSafe for ComponentFactory
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.