pub struct PickedFile {
pub name: String,
pub size: u64,
pub bytes: Rc<[u8]>,
}Expand description
A file brought into the app, whole, in memory.
Fields§
§name: StringIts name, with no folder. Never trust it as a path.
size: u64Its size on disk. A file bigger than the request allowed comes with no bytes.
bytes: Rc<[u8]>Its content.
Implementations§
Trait Implementations§
Source§impl Clone for PickedFile
impl Clone for PickedFile
Source§fn clone(&self) -> PickedFile
fn clone(&self) -> PickedFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PickedFile
impl Debug for PickedFile
impl Eq for PickedFile
Source§impl PartialEq for PickedFile
impl PartialEq for PickedFile
impl StructuralPartialEq for PickedFile
Auto Trait Implementations§
impl !Send for PickedFile
impl !Sync for PickedFile
impl Freeze for PickedFile
impl RefUnwindSafe for PickedFile
impl Unpin for PickedFile
impl UnsafeUnpin for PickedFile
impl UnwindSafe for PickedFile
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<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