pub enum InitTemplate {
Counter,
Todo,
Calculator,
}Expand description
Готовый пример, который light init --template кладёт в новый проект.
Variants§
Counter
Счётчик с реактивным состоянием.
Todo
Список задач с v-model, v-if и v-for.
Calculator
Калькулятор с обработчиками кнопок.
Implementations§
Source§impl InitTemplate
impl InitTemplate
Sourcepub fn template_files(self) -> &'static [(&'static str, &'static str)]
pub fn template_files(self) -> &'static [(&'static str, &'static str)]
Дополнительные HTML-шаблоны: путь в проекте и содержимое.
Trait Implementations§
Source§impl Clone for InitTemplate
impl Clone for InitTemplate
impl Copy for InitTemplate
Source§impl Debug for InitTemplate
impl Debug for InitTemplate
impl Eq for InitTemplate
Source§impl FromStr for InitTemplate
impl FromStr for InitTemplate
Source§impl PartialEq for InitTemplate
impl PartialEq for InitTemplate
impl StructuralPartialEq for InitTemplate
Auto Trait Implementations§
impl Forget for InitTemplate
impl Freeze for InitTemplate
impl Move for InitTemplate
impl RefUnwindSafe for InitTemplate
impl Send for InitTemplate
impl Sync for InitTemplate
impl Unpin for InitTemplate
impl UnsafeUnpin for InitTemplate
impl UnwindSafe for InitTemplate
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> 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§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.