pub struct FilledField<'a> { /* private fields */ }Implementations§
Source§impl<'a> FilledField<'a>
impl<'a> FilledField<'a>
Sourcepub fn builder(
html_type: impl Into<Cow<'a, str>>,
id: impl Into<Cow<'a, str>>,
name: impl Into<Cow<'a, str>>,
value: impl Into<Cow<'a, str>>,
autofill_type: impl Into<Cow<'a, str>>,
filling_strategy: impl Into<FillingStrategy>,
frame_id: FrameId<'a>,
field_id: BackendNodeId,
) -> FilledFieldBuilder<'a>
pub fn builder( html_type: impl Into<Cow<'a, str>>, id: impl Into<Cow<'a, str>>, name: impl Into<Cow<'a, str>>, value: impl Into<Cow<'a, str>>, autofill_type: impl Into<Cow<'a, str>>, filling_strategy: impl Into<FillingStrategy>, frame_id: FrameId<'a>, field_id: BackendNodeId, ) -> FilledFieldBuilder<'a>
Creates a builder for this type with the required parameters:
html_type: The type of the field, e.g text, password etc.id: the html idname: the html namevalue: the field valueautofill_type: The actual field type, e.g FAMILY_NAMEfilling_strategy: The filling strategyframe_id: The frame the field belongs tofield_id: The form field’s DOM node
Sourcepub fn autofill_type(&self) -> &str
pub fn autofill_type(&self) -> &str
The actual field type, e.g FAMILY_NAME
Sourcepub fn filling_strategy(&self) -> &FillingStrategy
pub fn filling_strategy(&self) -> &FillingStrategy
The filling strategy
Sourcepub fn field_id(&self) -> &BackendNodeId
pub fn field_id(&self) -> &BackendNodeId
The form field’s DOM node
Trait Implementations§
Source§impl<'a> Clone for FilledField<'a>
impl<'a> Clone for FilledField<'a>
Source§fn clone(&self) -> FilledField<'a>
fn clone(&self) -> FilledField<'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 FilledField<'a>
impl<'a> Debug for FilledField<'a>
Source§impl<'a> Default for FilledField<'a>
impl<'a> Default for FilledField<'a>
Source§fn default() -> FilledField<'a>
fn default() -> FilledField<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for FilledField<'a>
impl<'de, 'a> Deserialize<'de> for FilledField<'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 FilledField<'a>
impl<'a> RefUnwindSafe for FilledField<'a>
impl<'a> Send for FilledField<'a>
impl<'a> Sync for FilledField<'a>
impl<'a> Unpin for FilledField<'a>
impl<'a> UnsafeUnpin for FilledField<'a>
impl<'a> UnwindSafe for FilledField<'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