pub struct AllocRes {
pub name: String,
pub path: PathOnDevice,
pub state: RevisionState,
pub upload_id: String,
pub upload_url: String,
pub bytes: u64,
pub resume_pos: u64,
}
Expand description
Allocation response.
Fields§
§name: String
Name of the file.
path: PathOnDevice
Path.
state: RevisionState
State of the file upload (and revision).
upload_id: String
Id of the upload. Might be a JWT.
upload_url: String
Upload url. I think you still need your bearer token to upload.
bytes: u64
Total number of bytes to upload.
resume_pos: u64
Where to resume the upload from, if the upload is chunked for instance.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AllocRes
impl<'de> Deserialize<'de> for AllocRes
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AllocRes
impl RefUnwindSafe for AllocRes
impl Send for AllocRes
impl Sync for AllocRes
impl Unpin for AllocRes
impl UnwindSafe for AllocRes
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