pub struct CreateUploadSessionRequest<'a> {
pub uri: &'a str,
pub size: u64,
pub policy_id: &'a str,
pub last_modified: Option<u64>,
pub mime_type: Option<&'a str>,
pub metadata: Option<HashMap<String, String>>,
pub entity_type: Option<&'a str>,
}Expand description
Create upload session request
Fields§
§uri: &'a strTarget file path (will be converted to URI format internally)
Can be:
- Absolute path: “/folder/file.txt”
- Relative path: “folder/file.txt”
- Already formatted URI: “cloudreve://my/folder/file.txt”
size: u64Size of the file in bytes
policy_id: &'a strID of the storage policy to use
last_modified: Option<u64>Optional Unix milliseconds timestamp of when the file is last modified
mime_type: Option<&'a str>Optional mime type of the file
metadata: Option<HashMap<String, String>>Optional key-value of file metadata
entity_type: Option<&'a str>Optional blob type. “version” overwrites existing files.
Trait Implementations§
Source§impl<'a> Debug for CreateUploadSessionRequest<'a>
impl<'a> Debug for CreateUploadSessionRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for CreateUploadSessionRequest<'a>
impl<'a> RefUnwindSafe for CreateUploadSessionRequest<'a>
impl<'a> Send for CreateUploadSessionRequest<'a>
impl<'a> Sync for CreateUploadSessionRequest<'a>
impl<'a> Unpin for CreateUploadSessionRequest<'a>
impl<'a> UnwindSafe for CreateUploadSessionRequest<'a>
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