pub struct BeginUpload {
pub mode: UploadMode,
pub use_box_reason: String,
pub refusal: UploadRefusal,
pub limit_bytes: Option<u64>,
pub upload_token: String,
pub session_expires_at_ms: Option<u64>,
pub put: Option<UploadTarget>,
pub part_size_bytes: Option<u64>,
pub part_count: Option<u64>,
}Expand description
BeginGrokBotAttachmentUpload response.
Fields§
§mode: UploadModeWhat to do next.
use_box_reason: StringWhy USE_BOX was chosen, if given.
refusal: UploadRefusalSet when mode is REFUSED.
limit_bytes: Option<u64>The applicable size limit, if given.
upload_token: StringOpaque upload state for presign/complete/abort. Treat it as a secret.
session_expires_at_ms: Option<u64>When the upload session expires (ms since epoch).
put: Option<UploadTarget>The single-PUT target.
part_size_bytes: Option<u64>Multipart part size.
part_count: Option<u64>Multipart part count.
Implementations§
Source§impl BeginUpload
impl BeginUpload
Sourcepub fn from_value(v: &Value) -> Self
pub fn from_value(v: &Value) -> Self
Parse a Connect-JSON response.
Trait Implementations§
Source§impl Clone for BeginUpload
impl Clone for BeginUpload
Source§impl Debug for BeginUpload
impl Debug for BeginUpload
Source§impl Default for BeginUpload
impl Default for BeginUpload
Source§impl PartialEq for BeginUpload
impl PartialEq for BeginUpload
impl StructuralPartialEq for BeginUpload
Auto Trait Implementations§
impl Freeze for BeginUpload
impl RefUnwindSafe for BeginUpload
impl Send for BeginUpload
impl Sync for BeginUpload
impl Unpin for BeginUpload
impl UnsafeUnpin for BeginUpload
impl UnwindSafe for BeginUpload
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