pub struct KeygenClient { /* private fields */ }Implementations§
Source§impl KeygenClient
impl KeygenClient
pub fn builder() -> KeygenClientBuilder
pub fn new(config: KeygenConfig) -> Result<Self, Error>
pub fn from_global_config() -> Result<Self, Error>
pub fn api_contract_version(&self) -> ApiContractVersion
pub fn config(&self) -> &KeygenConfig
pub fn licenses(&self) -> LicenseService<'_>
pub async fn service_info(&self) -> Result<ServiceInfo, Error>
pub async fn validate( &self, request: &LicenseValidationRequest, ) -> Result<LicenseValidationResult, Error>
pub fn verify( &self, scheme: SchemeCode, signed_key: &str, ) -> Result<Vec<u8>, Error>
Trait Implementations§
Source§impl Clone for KeygenClient
impl Clone for KeygenClient
Source§fn clone(&self) -> KeygenClient
fn clone(&self) -> KeygenClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for KeygenClient
impl !UnwindSafe for KeygenClient
impl Freeze for KeygenClient
impl Send for KeygenClient
impl Sync for KeygenClient
impl Unpin for KeygenClient
impl UnsafeUnpin for KeygenClient
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