pub struct BrowserDownload {
pub tab: Option<u16>,
pub name: String,
pub bytes: Vec<u8>,
pub error: Option<String>,
}Expand description
One finished download, on its way to the person’s save door.
Fields§
§tab: Option<u16>The tab the download was started from, so only its viewer is offered
the save. None is a profile-level notice: the backlog dropped
offers before a viewer read them, and the lost ones may belong to any
tab of the profile.
name: String§bytes: Vec<u8>The file’s bytes, empty when it could not be relayed.
error: Option<String>Why this download cannot be saved, when it cannot.
Trait Implementations§
Source§impl Clone for BrowserDownload
impl Clone for BrowserDownload
Source§impl Debug for BrowserDownload
impl Debug for BrowserDownload
Source§impl<'de> Deserialize<'de> for BrowserDownload
impl<'de> Deserialize<'de> for BrowserDownload
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
impl Eq for BrowserDownload
Source§impl PartialEq for BrowserDownload
impl PartialEq for BrowserDownload
Source§impl Serialize for BrowserDownload
impl Serialize for BrowserDownload
impl StructuralPartialEq for BrowserDownload
Auto Trait Implementations§
impl Freeze for BrowserDownload
impl RefUnwindSafe for BrowserDownload
impl Send for BrowserDownload
impl Sync for BrowserDownload
impl Unpin for BrowserDownload
impl UnsafeUnpin for BrowserDownload
impl UnwindSafe for BrowserDownload
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.