#[repr(C)]pub struct ClipboardContent {
pub mime: String,
pub data: String,
}Expand description
One MIME representation in a clipboard write.
Both strings are borrowed and valid only for the duration of the callback. The data is binary-safe and has already been decoded from any protocol-level encoding. A zero-length data string is an explicit empty representation; it does not clear the clipboard.
This struct has a frozen layout and will not gain fields in future versions.
Fields§
§mime: StringMIME type of the representation.
data: StringDecoded, binary-safe representation data.
Trait Implementations§
Source§impl Clone for ClipboardContent
impl Clone for ClipboardContent
Source§fn clone(&self) -> ClipboardContent
fn clone(&self) -> ClipboardContent
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 moreimpl Copy for ClipboardContent
Source§impl Debug for ClipboardContent
impl Debug for ClipboardContent
Auto Trait Implementations§
impl !Send for ClipboardContent
impl !Sync for ClipboardContent
impl Freeze for ClipboardContent
impl RefUnwindSafe for ClipboardContent
impl Unpin for ClipboardContent
impl UnsafeUnpin for ClipboardContent
impl UnwindSafe for ClipboardContent
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