pub struct Form<T: HttpTransport> { /* private fields */ }Expand description
HTML form structure
Implementations§
Source§impl<T: HttpTransport> Form<T>
impl<T: HttpTransport> Form<T>
Sourcepub fn fill(&mut self, field_name: &str, value: &str) -> Result<&mut Self>
pub fn fill(&mut self, field_name: &str, value: &str) -> Result<&mut Self>
Fill field with value
Sourcepub fn uncheck(&mut self, field_name: &str, value: &str) -> Result<&mut Self>
pub fn uncheck(&mut self, field_name: &str, value: &str) -> Result<&mut Self>
Uncheck a checkbox
Sourcepub fn choose(&mut self, field_name: &str, value: &str) -> Result<&mut Self>
pub fn choose(&mut self, field_name: &str, value: &str) -> Result<&mut Self>
Select a radio button
Sourcepub fn select(&mut self, field_name: &str, value: &str) -> Result<&mut Self>
pub fn select(&mut self, field_name: &str, value: &str) -> Result<&mut Self>
Select an option in select box
Sourcepub async fn submit(&self) -> Result<HttpResponse>
pub async fn submit(&self) -> Result<HttpResponse>
Submit form
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Form<T>
impl<T> RefUnwindSafe for Form<T>where
T: RefUnwindSafe,
impl<T> Send for Form<T>
impl<T> Sync for Form<T>
impl<T> Unpin for Form<T>
impl<T> UnwindSafe for Form<T>where
T: RefUnwindSafe,
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