pub struct LicenseGate { /* private fields */ }Implementations§
Source§impl LicenseGate
impl LicenseGate
pub fn new(user_id: impl Into<String>) -> Self
pub fn set_public_rsa_key(self, key: impl Into<String>) -> Self
pub fn set_validation_server(self, server: impl Into<String>) -> Self
pub fn use_challenges(self) -> Self
pub fn debug(self) -> Self
pub async fn verify( &self, config: LicenseGateConfig, ) -> Result<ValidationType, LicenseGateError>
pub async fn verify_simple(&self, config: LicenseGateConfig) -> bool
Auto Trait Implementations§
impl Freeze for LicenseGate
impl !RefUnwindSafe for LicenseGate
impl Send for LicenseGate
impl Sync for LicenseGate
impl Unpin for LicenseGate
impl !UnwindSafe for LicenseGate
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