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§fn clone(&self) -> PhotoPickerPhoto
fn clone(&self) -> PhotoPickerPhoto
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<&PhotoPickerAssetArgs> for PhotoPickerPhoto
impl From<&PhotoPickerAssetArgs> for PhotoPickerPhoto
Source§fn from(value: &PhotoPickerAssetArgs) -> PhotoPickerPhoto
fn from(value: &PhotoPickerAssetArgs) -> PhotoPickerPhoto
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
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.