pub struct UploadArgs {
pub filename: String,
pub content_type: Option<String>,
pub bytes: Vec<u8>,
pub destination: Option<String>,
}Expand description
Parsed upload arguments — what the caller needs to send to the proxy.
Intentionally NOT Clone — bytes can be up to MAX_UPLOAD_BYTES and
cloning it would be a costly footgun. Each sink consumes args by value.
Fields§
§filename: String§content_type: Option<String>§bytes: Vec<u8>§destination: Option<String>Destination key from the proxy’s allowlist. None means “use the
operator-configured default.”
Implementations§
Source§impl UploadArgs
impl UploadArgs
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UploadArgs
impl RefUnwindSafe for UploadArgs
impl Send for UploadArgs
impl Sync for UploadArgs
impl Unpin for UploadArgs
impl UnsafeUnpin for UploadArgs
impl UnwindSafe for UploadArgs
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