pub struct FileUpload {
pub file_name: String,
pub file_path: PathBuf,
pub executable: bool,
pub short_desc: Option<String>,
pub long_desc: Option<String>,
}
Expand description
Struct to hold the details of a file to be uploaded to remote.it.
Fields§
§file_name: String
The name of the file. This is what the file will be called in the remote.it system.
file_path: PathBuf
The path to the file on the local filesystem.
executable: bool
Whether the file is an executable script or an asset.
short_desc: Option<String>
A short description of the file.
long_desc: Option<String>
A long description of the file.
Implementations§
Source§impl FileUpload
impl FileUpload
Sourcepub fn builder() -> FileUploadBuilder
pub fn builder() -> FileUploadBuilder
Create an instance of FileUpload
using the builder syntax
Trait Implementations§
Source§impl Clone for FileUpload
impl Clone for FileUpload
Source§fn clone(&self) -> FileUpload
fn clone(&self) -> FileUpload
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for FileUpload
impl RefUnwindSafe for FileUpload
impl Send for FileUpload
impl Sync for FileUpload
impl Unpin for FileUpload
impl UnwindSafe for FileUpload
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