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]
impl Phone
pub fn find(
c: &Client,
country_code: u16,
phone: &str
) -> Result<Phone, AuthyError>
[src]
pub 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.
pub fn start(
&self,
c: &Client,
via: ContactType,
code_length: Option<u8>,
locale: Option<&str>
) -> Result<PhoneStart, AuthyError>
[src]
pub fn start(
&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.
pub fn check(&self, c: &Client, code: &str) -> Result<(), AuthyError>
[src]
pub 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 Debug for Phone
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 Clone for Phone
[src]
impl Clone for Phone
fn clone(&self) -> Phone
[src]
fn clone(&self) -> Phone
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 Default for Phone
[src]
impl Default for Phone
impl Eq for Phone
[src]
impl Eq for Phone
impl PartialEq for Phone
[src]
impl PartialEq for Phone