#[non_exhaustive]pub enum Template {
Show 18 variants
Vanilla,
VanillaTs,
Vue,
VueTs,
Svelte,
SvelteTs,
React,
ReactTs,
Solid,
SolidTs,
Yew,
Leptos,
Sycamore,
Angular,
Preact,
PreactTs,
Blazor,
Dioxus,
}
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
Blazor
Dioxus
Implementations§
Source§impl Template
impl Template
pub const ALL: &[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_dotnet(&self) -> bool
pub const fn needs_dioxus_cli(&self) -> bool
pub const fn needs_wasm32_target(&self) -> bool
pub fn render( &self, target_dir: &Path, pkg_manager: PackageManager, project_name: &str, package_name: &str, identifier: &str, tauri_version: TauriVersion, ) -> Result<()>
Trait Implementations§
impl Copy for Template
impl Eq for Template
impl StructuralPartialEq for Template
Auto Trait Implementations§
impl Freeze for Template
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