pub struct Submission<'c, 'a, K> { /* private fields */ }Expand description
Implementations§
Source§impl<'c, 'a, K: PartialEq> Submission<'c, 'a, K>
impl<'c, 'a, K: PartialEq> Submission<'c, 'a, K>
Sourcepub fn add(self, field: K, value: &str) -> Self
pub fn add(self, field: K, value: &str) -> Self
Posts value as one more value of field, as a multiple choice posts each pick.
§Panics
When field binds more than one key.
Sourcepub fn set_key(self, key: &str, value: &str) -> Self
pub fn set_key(self, key: &str, value: &str) -> Self
Posts value under key, replacing any value set before.
Sourcepub fn create_another(self) -> Self
pub fn create_another(self) -> Self
Posts as the create page’s Create & create another button does, which lands back on a fresh create form.
Sourcepub fn picking(self) -> Self
pub fn picking(self) -> Self
Posts as the create page a creatable choice’s dialog frames does, which lands on the page
Reply::picked reads.
Sourcepub async fn submit(self) -> Reply<'c, 'a, K>
pub async fn submit(self) -> Reply<'c, 'a, K>
Posts the pairs with a fresh CSRF token, as TestClient::submit does.
Auto Trait Implementations§
impl<'c, 'a, K> !RefUnwindSafe for Submission<'c, 'a, K>
impl<'c, 'a, K> !UnwindSafe for Submission<'c, 'a, K>
impl<'c, 'a, K> Forget for Submission<'c, 'a, K>
impl<'c, 'a, K> Freeze for Submission<'c, 'a, K>
impl<'c, 'a, K> Move for Submission<'c, 'a, K>
impl<'c, 'a, K> Send for Submission<'c, 'a, K>
impl<'c, 'a, K> Sync for Submission<'c, 'a, K>
impl<'c, 'a, K> Unpin for Submission<'c, 'a, K>
impl<'c, 'a, K> UnsafeUnpin for Submission<'c, 'a, K>
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