pub struct PhotoPickerPhoto {
pub temp_id: String,
pub file_name: Option<String>,
pub mime_type: String,
pub byte_size: u64,
pub width: Option<u32>,
pub height: Option<u32>,
pub source_kind: PhotoPickerSourceKind,
pub handle: Option<String>,
pub data: Option<Vec<u8>>,
}Expand description
One selected image returned by a native photo picker.
Fields§
§temp_id: StringStable temporary identifier for this selection.
file_name: Option<String>File name supplied by the platform, when available.
mime_type: StringMIME type supplied or inferred by the platform.
byte_size: u64Byte size of the selected asset.
width: Option<u32>Image width in pixels, when available.
height: Option<u32>Image height in pixels, when available.
source_kind: PhotoPickerSourceKindSource used for this image.
handle: Option<String>Platform preview/read handle, such as an object URL or file URL.
data: Option<Vec<u8>>Copied asset bytes when the chassis can provide them within configured limits.
Trait Implementations§
Source§impl Clone for PhotoPickerPhoto
impl Clone for PhotoPickerPhoto
Source§impl From<&PhotoPickerAssetArgs> for PhotoPickerPhoto
impl From<&PhotoPickerAssetArgs> for PhotoPickerPhoto
Source§fn from(value: &PhotoPickerAssetArgs) -> Self
fn from(value: &PhotoPickerAssetArgs) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PhotoPickerPhoto
impl RefUnwindSafe for PhotoPickerPhoto
impl Send for PhotoPickerPhoto
impl Sync for PhotoPickerPhoto
impl Unpin for PhotoPickerPhoto
impl UnsafeUnpin for PhotoPickerPhoto
impl UnwindSafe for PhotoPickerPhoto
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,
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.