pub struct VerificationRequest {
pub email: Option<String>,
pub phone: Option<String>,
pub address: Option<StreetAddressArray>,
}Expand description
Request for verification made to one of the BriteVerify API’s single-transaction, real-time endpoints
Fields§
§email: Option<String>The email address to be verified
phone: Option<String>The phone number to be verified
address: Option<StreetAddressArray>The street address to be verified
Implementations§
Source§impl VerificationRequest
impl VerificationRequest
Sourcepub fn builder() -> VerificationRequestBuilder
pub fn builder() -> VerificationRequestBuilder
Get an builder instance that can be used
to build up a VerificationRequest incrementally
Sourcepub fn from_values<EmailAddress: ToString, PhoneNumber: ToString, AddressLine1: ToString, AddressLine2: ToString, CityName: ToString, StateNameOrAbbr: ToString, ZipCode: ToString>(
email: Option<EmailAddress>,
phone: Option<PhoneNumber>,
address1: Option<AddressLine1>,
address2: Option<AddressLine2>,
city: Option<CityName>,
state: Option<StateNameOrAbbr>,
zip: Option<ZipCode>,
) -> Result<Self, BriteVerifyTypeError>
pub fn from_values<EmailAddress: ToString, PhoneNumber: ToString, AddressLine1: ToString, AddressLine2: ToString, CityName: ToString, StateNameOrAbbr: ToString, ZipCode: ToString>( email: Option<EmailAddress>, phone: Option<PhoneNumber>, address1: Option<AddressLine1>, address2: Option<AddressLine2>, city: Option<CityName>, state: Option<StateNameOrAbbr>, zip: Option<ZipCode>, ) -> Result<Self, BriteVerifyTypeError>
Create a new VerificationRequest
instance from the supplied values
Trait Implementations§
Source§impl Debug for VerificationRequest
impl Debug for VerificationRequest
Source§impl Default for VerificationRequest
impl Default for VerificationRequest
Source§fn default() -> VerificationRequest
fn default() -> VerificationRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VerificationRequest
impl<'de> Deserialize<'de> for VerificationRequest
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
Source§impl Serialize for VerificationRequest
impl Serialize for VerificationRequest
Source§impl TryFrom<&str> for VerificationRequest
impl TryFrom<&str> for VerificationRequest
Auto Trait Implementations§
impl Freeze for VerificationRequest
impl RefUnwindSafe for VerificationRequest
impl Send for VerificationRequest
impl Sync for VerificationRequest
impl Unpin for VerificationRequest
impl UnwindSafe for VerificationRequest
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