pub struct Builder { /* private fields */ }Expand description
The plugin, configured with the product’s own addresses.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn new(scheme: &str) -> Self
pub fn new(scheme: &str) -> Self
scheme is the product’s deep-link scheme, lowercase (verikora), the one its Info.plist declares.
Sourcepub fn link_hosts<I: IntoIterator<Item = S>, S: Into<String>>(
self,
hosts: I,
) -> Self
pub fn link_hosts<I: IntoIterator<Item = S>, S: Into<String>>( self, hosts: I, ) -> Self
The product’s web hosts whose links open the app (www.verikora.com).
Sourcepub fn link_prefixes<I: IntoIterator<Item = S>, S: Into<String>>(
self,
prefixes: I,
) -> Self
pub fn link_prefixes<I: IntoIterator<Item = S>, S: Into<String>>( self, prefixes: I, ) -> Self
The routes a link may open (/app); none means every route.
Sourcepub fn hosted_origin(self, origin: &str) -> Self
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.
Sourcepub fn hosted_window(self, label: &str) -> Self
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.
Sourcepub fn update_feed(self, template: &str) -> Self
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).