Enum create_tauri_app::internal::template::Template
source · #[non_exhaustive]pub enum Template {
Show 16 variants
Vanilla,
VanillaTs,
Vue,
VueTs,
Svelte,
SvelteTs,
React,
ReactTs,
Solid,
SolidTs,
Yew,
Leptos,
Sycamore,
Angular,
Preact,
PreactTs,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Vanilla
VanillaTs
Vue
VueTs
Svelte
SvelteTs
React
ReactTs
Solid
SolidTs
Yew
Leptos
Sycamore
Angular
Preact
PreactTs
Implementations§
source§impl<'a> Template
impl<'a> Template
pub const ALL: &'a [Template] = _
pub fn flavors<'b>(&self, pkg_manager: PackageManager) -> Option<&'b [Flavor]>
pub fn from_flavor(&self, flavor: Flavor) -> Self
pub fn without_flavor(&self) -> Self
pub const fn possible_package_managers(&self) -> &[PackageManager]
pub const fn needs_trunk(&self) -> bool
pub const fn needs_tauri_cli(&self) -> bool
pub const fn needs_wasm32_target(&self) -> bool
pub fn render( &self, target_dir: &Path, pkg_manager: PackageManager, package_name: &str, alpha: bool, mobile: bool ) -> Result<()>
Trait Implementations§
source§impl PartialEq for Template
impl PartialEq for Template
impl Copy for Template
impl Eq for Template
impl StructuralEq for Template
impl StructuralPartialEq for Template
Auto Trait Implementations§
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnwindSafe for Template
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