pub struct RetryableMultipartForm {
pub filename: String,
/* private fields */
}Expand description
Retryable multipart form that can be recreated for retry attempts
Fields§
§filename: StringImplementations§
Source§impl RetryableMultipartForm
impl RetryableMultipartForm
Sourcepub fn from_content(
filename: String,
field_name: String,
content: Vec<u8>,
) -> Self
pub fn from_content( filename: String, field_name: String, content: Vec<u8>, ) -> Self
Create new retryable form from file content
Sourcepub async fn from_file_path(path: String) -> Result<Self>
pub async fn from_file_path(path: String) -> Result<Self>
Create new retryable form from file path (loads content into memory)
Trait Implementations§
Source§impl Clone for RetryableMultipartForm
impl Clone for RetryableMultipartForm
Source§fn clone(&self) -> RetryableMultipartForm
fn clone(&self) -> RetryableMultipartForm
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for RetryableMultipartForm
impl RefUnwindSafe for RetryableMultipartForm
impl Send for RetryableMultipartForm
impl Sync for RetryableMultipartForm
impl Unpin for RetryableMultipartForm
impl UnwindSafe for RetryableMultipartForm
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