pub struct FreeformAsset {
pub id: String,
pub filename: Option<String>,
pub uti: Option<String>,
pub bytes: Option<Vec<u8>>,
pub premium: Option<bool>,
pub intrinsic_size: Option<FreeformSize>,
pub raw_descriptor: Vec<u8>,
}Expand description
A referenced native asset and any captured bytes.
Fields§
§id: StringArchive asset identifier.
filename: Option<String>Original filename when present.
uti: Option<String>Pasteboard UTI carrying the bytes.
bytes: Option<Vec<u8>>Captured bytes; absent for premium or incomplete transfers.
Whether the item is premium/stock media.
intrinsic_size: Option<FreeformSize>Intrinsic media size.
raw_descriptor: Vec<u8>Unsupported raw asset descriptor.
Trait Implementations§
Source§impl Clone for FreeformAsset
impl Clone for FreeformAsset
Source§fn clone(&self) -> FreeformAsset
fn clone(&self) -> FreeformAsset
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 FreeformAsset
impl Debug for FreeformAsset
Source§impl<'de> Deserialize<'de> for FreeformAsset
impl<'de> Deserialize<'de> for FreeformAsset
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
Source§impl PartialEq for FreeformAsset
impl PartialEq for FreeformAsset
Source§impl Serialize for FreeformAsset
impl Serialize for FreeformAsset
impl StructuralPartialEq for FreeformAsset
Auto Trait Implementations§
impl Freeze for FreeformAsset
impl RefUnwindSafe for FreeformAsset
impl Send for FreeformAsset
impl Sync for FreeformAsset
impl Unpin for FreeformAsset
impl UnsafeUnpin for FreeformAsset
impl UnwindSafe for FreeformAsset
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