pub struct AddressFieldBuilder { /* private fields */ }Expand description
Builder for AddressField.
Implementations§
Source§impl AddressFieldBuilder
impl AddressFieldBuilder
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
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
Sourcepub fn value<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn value<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
address field value, for example Jon Doe.
Sourcepub fn build(&self) -> Result<AddressField, AddressFieldBuilderError>
pub fn build(&self) -> Result<AddressField, AddressFieldBuilderError>
Trait Implementations§
Source§impl Clone for AddressFieldBuilder
impl Clone for AddressFieldBuilder
Source§fn clone(&self) -> AddressFieldBuilder
fn clone(&self) -> AddressFieldBuilder
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 moreAuto Trait Implementations§
impl Freeze for AddressFieldBuilder
impl RefUnwindSafe for AddressFieldBuilder
impl Send for AddressFieldBuilder
impl Sync for AddressFieldBuilder
impl Unpin for AddressFieldBuilder
impl UnsafeUnpin for AddressFieldBuilder
impl UnwindSafe for AddressFieldBuilder
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