#[non_exhaustive]pub struct FileRequest {
pub extensions: Vec<String>,
pub multiple: bool,
pub most_bytes: Option<u64>,
}Expand description
What to ask of a FilePicker.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.extensions: Vec<String>The extensions offered, such as pdf; empty offers every file.
multiple: boolWhether more than one can be chosen.
most_bytes: Option<u64>Files above this size are not read, and come with no bytes.
Trait Implementations§
Source§impl Clone for FileRequest
impl Clone for FileRequest
Source§fn clone(&self) -> FileRequest
fn clone(&self) -> FileRequest
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 FileRequest
impl Debug for FileRequest
Source§impl Default for FileRequest
impl Default for FileRequest
Source§fn default() -> FileRequest
fn default() -> FileRequest
Returns the “default value” for a type. Read more
impl Eq for FileRequest
Source§impl PartialEq for FileRequest
impl PartialEq for FileRequest
impl StructuralPartialEq for FileRequest
Auto Trait Implementations§
impl Freeze for FileRequest
impl RefUnwindSafe for FileRequest
impl Send for FileRequest
impl Sync for FileRequest
impl Unpin for FileRequest
impl UnsafeUnpin for FileRequest
impl UnwindSafe for FileRequest
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<T> Brush for T
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