pub struct FileDragOptions {
pub preview: Option<PathBuf>,
pub copy: bool,
}Expand description
从窗口拖出文件的选项。
Fields§
§preview: Option<PathBuf>拖拽预览图路径;None = 尝试使用第一个文件(不是图片时无预览)。
copy: booltrue = 复制(默认);false = 移动。
Implementations§
Trait Implementations§
Source§impl Clone for FileDragOptions
impl Clone for FileDragOptions
Source§impl Debug for FileDragOptions
impl Debug for FileDragOptions
Source§impl Default for FileDragOptions
impl Default for FileDragOptions
impl Eq for FileDragOptions
Source§impl PartialEq for FileDragOptions
impl PartialEq for FileDragOptions
impl StructuralPartialEq for FileDragOptions
Auto Trait Implementations§
impl Forget for FileDragOptions
impl Freeze for FileDragOptions
impl Move for FileDragOptions
impl RefUnwindSafe for FileDragOptions
impl Send for FileDragOptionswhere
RawVecInner: Send,
impl Sync for FileDragOptionswhere
RawVecInner: Sync,
impl Unpin for FileDragOptions
impl UnsafeUnpin for FileDragOptions
impl UnwindSafe for FileDragOptionswhere
RawVecInner: UnwindSafe,
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