pub struct Builder<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Builder<'a>
impl<'a> Builder<'a>
pub fn new(commands: &'a [&'static str]) -> Self
Sourcepub fn global_scope_schema(self, schema: RootSchema) -> Self
pub fn global_scope_schema(self, schema: RootSchema) -> Self
Sets the global scope JSON schema.
Sourcepub fn global_api_script_path<P: Into<PathBuf>>(self, path: P) -> Self
pub fn global_api_script_path<P: Into<PathBuf>>(self, path: P) -> Self
Sets the path to the script that is injected in the webview when the withGlobalTauri
configuration is set to true.
This is usually an IIFE that injects the plugin API JavaScript bindings to window.__TAURI__
.
Sourcepub fn android_path<P: Into<PathBuf>>(self, android_path: P) -> Self
pub fn android_path<P: Into<PathBuf>>(self, android_path: P) -> Self
Sets the Android project path.
Sourcepub fn build(self)
pub fn build(self)
Self::try_build
but will exit automatically if an error is found.
Auto Trait Implementations§
impl<'a> Freeze for Builder<'a>
impl<'a> RefUnwindSafe for Builder<'a>
impl<'a> Send for Builder<'a>
impl<'a> Sync for Builder<'a>
impl<'a> Unpin for Builder<'a>
impl<'a> UnwindSafe for Builder<'a>
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