pub struct CompletionRequest {
pub method: Method,
pub url: String,
pub headers: HeaderMap,
pub body: Option<Vec<u8>>,
pub uploaded_parts_json_body: bool,
}Expand description
One HTTP request used for completion or abort callbacks.
Fields§
§method: MethodHTTP method used for the callback.
url: StringTarget URL.
headers: HeaderMapRequest headers.
body: Option<Vec<u8>>Optional request body.
uploaded_parts_json_body: boolWhen true and body is None, completion sends a JSON payload with
upload_id, sizes, and uploaded part metadata (ETag, provider id).
Implementations§
Source§impl CompletionRequest
impl CompletionRequest
Sourcepub fn with_headers(self, headers: HeaderMap) -> Self
pub fn with_headers(self, headers: HeaderMap) -> Self
Replaces request headers.
Sourcepub fn with_uploaded_parts_json_body(self) -> Self
pub fn with_uploaded_parts_json_body(self) -> Self
Uses an auto-generated JSON body containing uploaded part metadata.
This is intended for presigned multipart flows where the application
server performs final merge after receiving the uploaded partNumber +
ETag list from the client.
Trait Implementations§
Source§impl Clone for CompletionRequest
impl Clone for CompletionRequest
Source§fn clone(&self) -> CompletionRequest
fn clone(&self) -> CompletionRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CompletionRequest
impl RefUnwindSafe for CompletionRequest
impl Send for CompletionRequest
impl Sync for CompletionRequest
impl Unpin for CompletionRequest
impl UnsafeUnpin for CompletionRequest
impl UnwindSafe for CompletionRequest
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