pub struct PhoneNumberVerificationArray {
pub number: String,
pub status: VerificationStatus,
pub service_type: Option<String>,
pub phone_location: Option<Value>,
pub errors: Vec<Value>,
}Expand description
The phone element of a verification response
Fields§
§number: StringThe phone number from the originating verification request
NOTE: from observed behavior, this field will be the requested phone number, scrubbed of all non-numeric characters and formatted as:
"{country_code}{phone_number}"
status: VerificationStatusThe validity “status” of the supplied phone number (ref)
service_type: Option<String>The “type” of service the phone number most likely uses (e.g. “land line”, “mobile”, etc..)
phone_location: Option<Value>The geographical area within which the phone number was initially registered or should be considered “valid”
NOTE: from observed behavior, this field is never not
null
errors: Vec<Value>A list of errors that were encountered while fulfilling the verification request
Trait Implementations§
Source§impl Debug for PhoneNumberVerificationArray
impl Debug for PhoneNumberVerificationArray
Source§impl<'de> Deserialize<'de> for PhoneNumberVerificationArray
impl<'de> Deserialize<'de> for PhoneNumberVerificationArray
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PhoneNumberVerificationArray
impl RefUnwindSafe for PhoneNumberVerificationArray
impl Send for PhoneNumberVerificationArray
impl Sync for PhoneNumberVerificationArray
impl Unpin for PhoneNumberVerificationArray
impl UnwindSafe for PhoneNumberVerificationArray
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more