pub struct DragDataItemBuilder { /* private fields */ }Expand description
Builder for DragDataItem.
Implementations§
Source§impl DragDataItemBuilder
impl DragDataItemBuilder
Sourcepub fn mime_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn mime_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Mime type of the dragged data.
Sourcepub fn data<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn data<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Depending of the value of mimeType, it contains the dragged link,
text, HTML markup or any other data.
Sourcepub fn title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Title associated with a link. Only valid when mimeType == “text/uri-list”.
Sourcepub fn base_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn base_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Stores the base URL for the contained markup. Only valid when mimeType
== “text/html”.
Sourcepub fn build(&self) -> Result<DragDataItem, DragDataItemBuilderError>
pub fn build(&self) -> Result<DragDataItem, DragDataItemBuilderError>
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 moreAuto Trait Implementations§
impl Freeze for DragDataItemBuilder
impl RefUnwindSafe for DragDataItemBuilder
impl Send for DragDataItemBuilder
impl Sync for DragDataItemBuilder
impl Unpin for DragDataItemBuilder
impl UnsafeUnpin 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