pub struct UploadFileResponse {
pub file_id: String,
pub file_version_id: String,
pub version: u32,
pub name: String,
pub executable: bool,
pub owner_id: String,
pub file_arguments: Vec<Value>,
}
Expand description
The positive response from the remote.it API when uploading a file.
Fields§
§file_id: String
The ID of the file. You can use this to reference the file in other API calls.
file_version_id: String
The ID of the version of the file. You can use this to reference the version in other API calls.
version: u32
The version of the file. When you upload a file with the same name as one that already exists, the version will be incremented.
name: String
The name of the file.
executable: bool
Whether the file is an executable script or an asset.
owner_id: String
The User ID of the owner of the file.
file_arguments: Vec<Value>
The available arguments for this file, if it is an executable script. See https://docs.remote.it/developer-tools/device-scripting#creating-scripts for more information.
Trait Implementations§
Source§impl Clone for UploadFileResponse
impl Clone for UploadFileResponse
Source§fn clone(&self) -> UploadFileResponse
fn clone(&self) -> UploadFileResponse
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 moreSource§impl Debug for UploadFileResponse
impl Debug for UploadFileResponse
Source§impl<'de> Deserialize<'de> for UploadFileResponse
impl<'de> Deserialize<'de> for UploadFileResponse
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 UploadFileResponse
impl RefUnwindSafe for UploadFileResponse
impl Send for UploadFileResponse
impl Sync for UploadFileResponse
impl Unpin for UploadFileResponse
impl UnwindSafe for UploadFileResponse
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