Skip to main content
← rust.krizaka.comkrizaka.com

Builder

Struct Builder 

Source
pub struct Builder { /* private fields */ }
Expand description

The plugin, configured with the product’s own addresses.

Implementations§

Source§

impl Builder

Source

pub fn new(scheme: &str) -> Self

scheme is the product’s deep-link scheme, lowercase (verikora), the one its Info.plist declares.

The product’s web hosts whose links open the app (www.verikora.com).

The routes a link may open (/app); none means every route.

Source

pub fn hosted_origin(self, origin: &str) -> Self

A hosted web app a window of this app may show (https://www.folioviv.com): HTTPS, reduced to its origin.

Source

pub fn hosted_window(self, label: &str) -> Self

The window (its label) that shows the first hosted origin: a deep link navigates it to the link’s route on that origin. A hosted page gets no capability, so it is told nothing; the window just goes there.

Source

pub fn update_feed(self, template: &str) -> Self

The update feed, with {channel} (see krizaka_rust::update::feed_url). The app’s plugins.updater must then hold a pubkey, or the plugin refuses to start (see krizaka_rust::update).

Source

pub fn build<R: Runtime>(self) -> TauriPlugin<R>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.