pub struct Builder { /* private fields */ }Expand description
Configure KeyringPlugin before mounting (service name defaults to the app identifier).
§Example
use tauri_plugin_keyring_store::Builder;
fn plugin() -> tauri::plugin::TauriPlugin<tauri::Wry> {
Builder::new()
.service("com.example.myapp.keyring")
.build()
}Implementations§
Source§impl Builder
impl Builder
Sourcepub fn new() -> Self
pub fn new() -> Self
Same as Default::default.
Sourcepub fn service(self, service: impl Into<String>) -> Self
pub fn service(self, service: impl Into<String>) -> Self
Override the keychain/credential-manager service string (Stronghold has no direct equivalent).
Sourcepub fn build<R: Runtime>(self) -> TauriPlugin<R>
pub fn build<R: Runtime>(self) -> TauriPlugin<R>
Build the plugin for registration via tauri::Builder::plugin.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnsafeUnpin for Builder
impl UnwindSafe for Builder
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