pub struct Builder {
pub custom_domain: Option<String>,
pub api_url: Option<String>,
pub account_id: Option<String>,
pub verify_key: String,
pub version_header: Option<String>,
pub cache_lifetime: i64,
}
Fields§
§custom_domain: Option<String>
§api_url: Option<String>
§account_id: Option<String>
§verify_key: String
§version_header: Option<String>
§cache_lifetime: i64
Implementations§
Source§impl Builder
impl Builder
pub fn new(account_id: impl Into<String>, verify_key: impl Into<String>) -> Self
pub fn with_custom_domain( custom_domain: impl Into<String>, verify_key: impl Into<String>, ) -> Self
pub fn api_url(self, api_url: impl Into<String>) -> Self
pub fn version_header(self, version_header: impl Into<String>) -> Self
pub fn cache_lifetime(self, cache_lifetime: i64) -> Self
pub fn build<R: Runtime>(self) -> TauriPlugin<R>
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 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