Struct remoteit_api::file_upload::FileUpload
source · 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: StringThe name of the file. This is what the file will be called in the remote.it system.
file_path: PathBufThe path to the file on the local filesystem.
executable: boolWhether 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
Use builder syntax to create an instance of FileUpload
Trait Implementations§
source§impl Clone for FileUpload
impl Clone for FileUpload
source§fn clone(&self) -> FileUpload
fn clone(&self) -> FileUpload
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)