Struct yubico::config::Config [−][src]
pub struct Config { pub client_id: String, pub key: Vec<u8>, pub product_id: u16, pub vendor_id: u16, pub variable: bool, pub slot: Slot, pub mode: Mode, pub command: Command, pub api_hosts: Vec<String>, }
Fields
client_id: String
key: Vec<u8>
product_id: u16
vendor_id: u16
variable: bool
slot: Slot
mode: Mode
command: Command
api_hosts: Vec<String>
Methods
impl Config
[src]
impl Config
pub fn default() -> Config
[src]
pub fn default() -> Config
pub fn set_client_id<C>(self, client_id: C) -> Self where
C: Into<String>,
[src]
pub fn set_client_id<C>(self, client_id: C) -> Self where
C: Into<String>,
pub fn set_key<K>(self, key: K) -> Self where
K: Into<String>,
[src]
pub fn set_key<K>(self, key: K) -> Self where
K: Into<String>,
pub fn set_api_hosts(self, hosts: Vec<String>) -> Self
[src]
pub fn set_api_hosts(self, hosts: Vec<String>) -> Self
pub fn set_vendor_id(self, vendor_id: u16) -> Self
[src]
pub fn set_vendor_id(self, vendor_id: u16) -> Self
pub fn set_product_id(self, product_id: u16) -> Self
[src]
pub fn set_product_id(self, product_id: u16) -> Self
pub fn set_variable_size(self, variable: bool) -> Self
[src]
pub fn set_variable_size(self, variable: bool) -> Self
pub fn set_slot(self, slot: Slot) -> Self
[src]
pub fn set_slot(self, slot: Slot) -> Self
pub fn set_mode(self, mode: Mode) -> Self
[src]
pub fn set_mode(self, mode: Mode) -> Self
pub fn set_command(self, command: Command) -> Self
[src]
pub fn set_command(self, command: Command) -> Self
Trait Implementations
impl Clone for Config
[src]
impl Clone for Config
fn clone(&self) -> Config
[src]
fn clone(&self) -> Config
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Config
[src]
impl Debug for Config
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Config
[src]
impl PartialEq for Config