pub enum PickerMode {
Document,
Media,
Image,
Video,
}Expand description
The preferred mode of the file picker on mobile platforms (iOS and Android), which have distinct file and media pickers. On desktop, this option is ignored.
Variants§
Document
Show the generic document picker.
Media
Show the media picker, allowing both images and videos to be selected.
Image
Show the media picker restricted to images.
Video
Show the media picker restricted to videos.
Trait Implementations§
Source§impl Clone for PickerMode
impl Clone for PickerMode
Source§impl Debug for PickerMode
impl Debug for PickerMode
Source§impl<'de> Deserialize<'de> for PickerMode
impl<'de> Deserialize<'de> for PickerMode
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 PickerMode
impl RefUnwindSafe for PickerMode
impl Send for PickerMode
impl Sync for PickerMode
impl Unpin for PickerMode
impl UnsafeUnpin for PickerMode
impl UnwindSafe for PickerMode
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