pub struct HtmlFormDataBuilder { /* private fields */ }Expand description
HTML Form Data Builder.
See HtmlFormData examples.
Implementations§
Source§impl HtmlFormDataBuilder
impl HtmlFormDataBuilder
Sourcepub async fn build(self) -> Result<HtmlFormData, Error>
pub async fn build(self) -> Result<HtmlFormData, Error>
Builds the HtmlFormData.
Sourcepub fn cache_control(self, cache_control: impl Into<String>) -> Self
pub fn cache_control(self, cache_control: impl Into<String>) -> Self
Sets the Cache-Control field.
Sourcepub fn content_disposition(self, content_disposition: impl Into<String>) -> Self
pub fn content_disposition(self, content_disposition: impl Into<String>) -> Self
Sets the Content-Disposition field.
Sourcepub fn content_encoding(self, content_encoding: impl Into<String>) -> Self
pub fn content_encoding(self, content_encoding: impl Into<String>) -> Self
Sets the Content-Encoding field.
Sourcepub fn content_length(self, content_length: u64) -> Self
pub fn content_length(self, content_length: u64) -> Self
Sets the Content-Length field.
Sourcepub fn content_type(self, content_type: impl Into<String>) -> Self
pub fn content_type(self, content_type: impl Into<String>) -> Self
Sets the Content-Type field.
Sourcepub fn policy_document_signing_options(
self,
policy_document_signing_options: PolicyDocumentSigningOptions,
) -> Self
pub fn policy_document_signing_options( self, policy_document_signing_options: PolicyDocumentSigningOptions, ) -> Self
Sets the policy field, x-goog-algorithm field, x-goog-credential field, x-goog-date field, and x-goog-signature field.
Sourcepub fn success_action_redirect(
self,
success_action_redirect: impl Into<String>,
) -> Self
pub fn success_action_redirect( self, success_action_redirect: impl Into<String>, ) -> Self
Sets the success_action_redirect field.
Sourcepub fn success_action_status(self, success_action_status: u16) -> Self
pub fn success_action_status(self, success_action_status: u16) -> Self
Sets the success_action_status field.
Sourcepub fn x_goog_custom_time(self, x_goog_custom_time: impl Into<String>) -> Self
pub fn x_goog_custom_time(self, x_goog_custom_time: impl Into<String>) -> Self
Sets the x-goog-custom-time field.
Trait Implementations§
Source§impl Default for HtmlFormDataBuilder
impl Default for HtmlFormDataBuilder
Source§fn default() -> HtmlFormDataBuilder
fn default() -> HtmlFormDataBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HtmlFormDataBuilder
impl !RefUnwindSafe for HtmlFormDataBuilder
impl Send for HtmlFormDataBuilder
impl Sync for HtmlFormDataBuilder
impl Unpin for HtmlFormDataBuilder
impl !UnwindSafe for HtmlFormDataBuilder
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