pub struct DragDataItemBuilder { /* private fields */ }Available on crate features
Input and experimental only.Implementations§
Source§impl DragDataItemBuilder
impl DragDataItemBuilder
Sourcepub fn data(&mut self, v: String) -> &mut Self
pub fn data(&mut self, v: String) -> &mut Self
Depending of the value of mimeType, it contains the dragged link,
text, HTML markup or any other data.
Sourcepub fn title(&mut self, v: String) -> &mut Self
pub fn title(&mut self, v: String) -> &mut Self
Title associated with a link. Only valid when mimeType == “text/uri-list”.
Sourcepub fn base_url(&mut self, v: String) -> &mut Self
pub fn base_url(&mut self, v: String) -> &mut Self
Stores the base URL for the contained markup. Only valid when mimeType
== “text/html”.
pub fn build(&mut self) -> Result<DragDataItem, &'static str>
Trait Implementations§
Source§impl Clone for DragDataItemBuilder
impl Clone for DragDataItemBuilder
Source§fn clone(&self) -> DragDataItemBuilder
fn clone(&self) -> DragDataItemBuilder
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 moreSource§impl Debug for DragDataItemBuilder
impl Debug for DragDataItemBuilder
Auto Trait Implementations§
impl Freeze for DragDataItemBuilder
impl RefUnwindSafe for DragDataItemBuilder
impl Send for DragDataItemBuilder
impl Sync for DragDataItemBuilder
impl Unpin for DragDataItemBuilder
impl UnwindSafe for DragDataItemBuilder
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