pub struct AddressCredential<E = ()> {
pub street_address: Option<EditableField<EditableFieldString, E>>,
pub postal_code: Option<EditableField<EditableFieldString, E>>,
pub city: Option<EditableField<EditableFieldString, E>>,
pub territory: Option<EditableField<EditableFieldSubdivisionCode, E>>,
pub country: Option<EditableField<EditableFieldCountryCode, E>>,
pub tel: Option<EditableField<EditableFieldString, E>>,
}Expand description
An AddressCredential provides information for autofilling address forms.
Fields§
§street_address: Option<EditableField<EditableFieldString, E>>The address line for the address. This is intentionally flexible to accommodate different
address formats. Implementers MUST support multi-line addresses for this field, where each
line is separated by a \n line feed.
postal_code: Option<EditableField<EditableFieldString, E>>The ZIP or postal code for the address.
city: Option<EditableField<EditableFieldString, E>>The city for the address.
territory: Option<EditableField<EditableFieldSubdivisionCode, E>>The province, state, or territory for the address.
country: Option<EditableField<EditableFieldCountryCode, E>>The country for the address. This MUST conform to the ISO 3166-1 alpha-2 format.
tel: Option<EditableField<EditableFieldString, E>>The phone number associated with the address.
Trait Implementations§
Source§impl<E: Clone> Clone for AddressCredential<E>
impl<E: Clone> Clone for AddressCredential<E>
Source§fn clone(&self) -> AddressCredential<E>
fn clone(&self) -> AddressCredential<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: Debug> Debug for AddressCredential<E>
impl<E: Debug> Debug for AddressCredential<E>
Source§impl<E: Default> Default for AddressCredential<E>
impl<E: Default> Default for AddressCredential<E>
Source§fn default() -> AddressCredential<E>
fn default() -> AddressCredential<E>
Returns the “default value” for a type. Read more
Source§impl<'de, E> Deserialize<'de> for AddressCredential<E>where
E: Deserialize<'de>,
impl<'de, E> Deserialize<'de> for AddressCredential<E>where
E: Deserialize<'de>,
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<E> Freeze for AddressCredential<E>
impl<E> RefUnwindSafe for AddressCredential<E>where
E: RefUnwindSafe,
impl<E> Send for AddressCredential<E>where
E: Send,
impl<E> Sync for AddressCredential<E>where
E: Sync,
impl<E> Unpin for AddressCredential<E>where
E: Unpin,
impl<E> UnwindSafe for AddressCredential<E>where
E: UnwindSafe,
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