pub struct ScreenEntry {
pub meta: ScreenMeta,
pub deps: fn() -> Vec<Dep>,
pub build: fn(Ctx, Value) -> BoxFuture<Result<Screen>>,
pub path_value: fn(&str, &str) -> Option<Value>,
}Expand description
A registered screen with type erased params.
Fields§
§meta: ScreenMeta§deps: fn() -> Vec<Dep>§build: fn(Ctx, Value) -> BoxFuture<Result<Screen>>§path_value: fn(&str, &str) -> Option<Value>Reads a path segment of the route as a params field; see ScreenDef::path_value.
Implementations§
Trait Implementations§
Source§impl Clone for ScreenEntry
impl Clone for ScreenEntry
impl Copy for ScreenEntry
Auto Trait Implementations§
impl Freeze for ScreenEntry
impl RefUnwindSafe for ScreenEntry
impl Send for ScreenEntry
impl Sync for ScreenEntry
impl Unpin for ScreenEntry
impl UnsafeUnpin for ScreenEntry
impl UnwindSafe for ScreenEntry
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