pub enum PhotoPickerSourceKind {
Library,
File,
Camera,
Other(String),
}Expand description
Platform source used to produce a selected photo.
Variants§
Library
Existing image from a photo library.
File
Existing image from the filesystem.
Camera
Newly captured camera image.
Other(String)
Source not recognized by this runtime version.
Trait Implementations§
Source§impl Clone for PhotoPickerSourceKind
impl Clone for PhotoPickerSourceKind
Source§fn clone(&self) -> PhotoPickerSourceKind
fn clone(&self) -> PhotoPickerSourceKind
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 From<&str> for PhotoPickerSourceKind
impl From<&str> for PhotoPickerSourceKind
Source§fn from(value: &str) -> PhotoPickerSourceKind
fn from(value: &str) -> PhotoPickerSourceKind
Converts to this type from the input type.
Source§impl PartialEq for PhotoPickerSourceKind
impl PartialEq for PhotoPickerSourceKind
impl StructuralPartialEq for PhotoPickerSourceKind
Auto Trait Implementations§
impl Freeze for PhotoPickerSourceKind
impl RefUnwindSafe for PhotoPickerSourceKind
impl Send for PhotoPickerSourceKind
impl Sync for PhotoPickerSourceKind
impl Unpin for PhotoPickerSourceKind
impl UnsafeUnpin for PhotoPickerSourceKind
impl UnwindSafe for PhotoPickerSourceKind
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,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.