Struct yubico::Yubico
[−]
[src]
pub struct Yubico { /* fields omitted */ }
Methods
impl Yubico
[src]
fn new(client_id: String, key: String) -> Self
Creates a new Yubico instance.
fn verify(&self, otp: String) -> Result<String, YubicoError>
fn get(&self, url: String) -> Result<String, YubicoError>
Trait Implementations
impl Clone for Yubico
[src]
fn clone(&self) -> Yubico
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more