pub struct FileResponse {
pub success: bool,
pub data: Option<String>,
pub size: u64,
pub error: Option<String>,
}Expand description
File transfer response.
Fields§
§success: boolWhether the operation succeeded.
data: Option<String>File content (for download only, base64-encoded).
size: u64File size in bytes.
error: Option<String>Error message if the operation failed.
Trait Implementations§
Source§impl Clone for FileResponse
impl Clone for FileResponse
Source§fn clone(&self) -> FileResponse
fn clone(&self) -> FileResponse
Returns a duplicate 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 moreSource§impl Debug for FileResponse
impl Debug for FileResponse
Source§impl<'de> Deserialize<'de> for FileResponse
impl<'de> Deserialize<'de> for FileResponse
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 FileResponse
impl RefUnwindSafe for FileResponse
impl Send for FileResponse
impl Sync for FileResponse
impl Unpin for FileResponse
impl UnsafeUnpin for FileResponse
impl UnwindSafe for FileResponse
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