pub struct PastedContent {
pub id: u32,
pub content: String,
pub media_type: Option<String>,
pub source_path: Option<String>,
pub dimensions: Option<ImageDimensions>,
}Expand description
Pasted content from user
Fields§
§id: u32Unique ID
content: StringContent (base64-encoded)
media_type: Option<String>Media type
source_path: Option<String>Source path (optional)
dimensions: Option<ImageDimensions>Dimensions (optional)
Trait Implementations§
Source§impl Clone for PastedContent
impl Clone for PastedContent
Source§fn clone(&self) -> PastedContent
fn clone(&self) -> PastedContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PastedContent
impl RefUnwindSafe for PastedContent
impl Send for PastedContent
impl Sync for PastedContent
impl Unpin for PastedContent
impl UnsafeUnpin for PastedContent
impl UnwindSafe for PastedContent
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