Struct authy::phone::Phone
[−]
[src]
pub struct Phone { pub country_code: u16, pub phone_number: String, pub phone_type: String, pub provider: Option<String>, pub ported: bool, }
Returned when finding a phone number.
Please see api::phone for more details.
Fields
country_code: u16
phone_number: String
phone_type: String
provider: Option<String>
ported: bool
Methods
impl Phone
[src]
fn find(c: &Client, country_code: u16, phone: &str) -> Result<Phone, AuthyError>
Request information on a phone number.
Please see api::phone::info for more details.
fn start(
&self,
c: &Client,
via: ContactType,
code_length: Option<u8>,
locale: Option<&str>
) -> Result<PhoneStart, AuthyError>
&self,
c: &Client,
via: ContactType,
code_length: Option<u8>,
locale: Option<&str>
) -> Result<PhoneStart, AuthyError>
Initiate a phone verification check.
Please see api::phone::start for more details.
fn check(&self, c: &Client, code: &str) -> Result<(), AuthyError>
Verify phone verification code sent to user.
Please see api::phone::check for more details.
Trait Implementations
impl Debug for Phone
[src]
impl Clone for Phone
[src]
fn clone(&self) -> Phone
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