pub struct Download {
pub name: String,
pub content: Vec<u8>,
pub content_type: String,
}Expand description
A file the browser downloads instead of rendering the component.
Fields§
§name: StringThe file name the browser saves.
content: Vec<u8>The file’s bytes.
content_type: StringThe file’s media type, such as text/csv.
Trait Implementations§
impl Eq for Download
impl StructuralPartialEq for Download
Auto Trait Implementations§
impl Forget for Download
impl Freeze for Download
impl Move for Download
impl RefUnwindSafe for Download
impl Send for Downloadwhere
RawVecInner: Send,
impl Sync for Downloadwhere
RawVecInner: Sync,
impl Unpin for Download
impl UnsafeUnpin for Download
impl UnwindSafe for Downloadwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.