pub struct ViewModel<T: View> {
pub name: &'static str,
pub model: T,
}Expand description
A typed view and its model, ready for conversion by the framework adapter.
Fields§
§name: &'static strThe Blade template name.
model: TThe original typed model.
Trait Implementations§
Auto Trait Implementations§
impl<T> Forget for ViewModel<T>
impl<T> Freeze for ViewModel<T>
impl<T> Move for ViewModel<T>
impl<T> RefUnwindSafe for ViewModel<T>where
T: RefUnwindSafe,
impl<T> Send for ViewModel<T>
impl<T> Sync for ViewModel<T>where
T: Sync,
impl<T> Unpin for ViewModel<T>
impl<T> UnsafeUnpin for ViewModel<T>
impl<T> UnwindSafe for ViewModel<T>
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