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