pub struct UploadOptions
pub recursive: bool,
pub ttl: i32,
Fields
recursive: boolWhether to search subdirectories for the files to upload. Default: true
This applies to glob patterns and to a directory given by name, which uploads its files as <directory>/* does. A file given by name is uploaded alone either way: upload(“/data/file.csv”) uploads that file, not also /data/sub/file.csv. Files found below a pattern’s or directory’s base go to the same path below the remote directory.
ttl: i32Time-to-live value for uploaded files in seconds. A value of -1 or 0 means no expiration. Default: -1
Implementations
impl UploadOptions
pub fn with_recursive(self, recursive: bool) -> Self
Sets whether patterns and directories given by name are searched below their own level. See UploadOptions::recursive.
Sets the TTL (time-to-live) in seconds for uploaded files. Use -1 or 0 for no expiration.
pub fn is_recursive(&self) -> bool
Returns whether recursive search is enabled.
Trait Implementations
impl Clone for UploadOptions
fn clone(&self) -> UploadOptions
fn clone_from(&mut self, source: &Self)
source. Read more