pub struct AddressField<'a> { /* private fields */ }Implementations§
Source§impl<'a> AddressField<'a>
impl<'a> AddressField<'a>
Sourcepub fn builder(
name: impl Into<Cow<'a, str>>,
value: impl Into<Cow<'a, str>>,
) -> AddressFieldBuilder<'a>
pub fn builder( name: impl Into<Cow<'a, str>>, value: impl Into<Cow<'a, str>>, ) -> AddressFieldBuilder<'a>
Creates a builder for this type with the required parameters:
name: address field name, for example GIVEN_NAME. The full list of supported field names: https://source.chromium.org/chromium/chromium/src/+/main:components/autofill/core/browser/field_types.cc;l=38value: address field value, for example Jon Doe.
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
address field name, for example GIVEN_NAME. The full list of supported field names: https://source.chromium.org/chromium/chromium/src/+/main:components/autofill/core/browser/field_types.cc;l=38
Trait Implementations§
Source§impl<'a> Clone for AddressField<'a>
impl<'a> Clone for AddressField<'a>
Source§fn clone(&self) -> AddressField<'a>
fn clone(&self) -> AddressField<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for AddressField<'a>
impl<'a> Debug for AddressField<'a>
Source§impl<'a> Default for AddressField<'a>
impl<'a> Default for AddressField<'a>
Source§fn default() -> AddressField<'a>
fn default() -> AddressField<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for AddressField<'a>
impl<'de, 'a> Deserialize<'de> for AddressField<'a>
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<'a> Freeze for AddressField<'a>
impl<'a> RefUnwindSafe for AddressField<'a>
impl<'a> Send for AddressField<'a>
impl<'a> Sync for AddressField<'a>
impl<'a> Unpin for AddressField<'a>
impl<'a> UnsafeUnpin for AddressField<'a>
impl<'a> UnwindSafe for AddressField<'a>
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