pub struct PathPromptOptions {
pub files: bool,
pub directories: bool,
pub multiple: bool,
pub prompt: Option<SharedString>,
}Expand description
重导出平台抽象层相关类型 文件对话框提示可配置的选项
Fields§
§files: bool提示是否允许选择文件?
directories: bool提示是否允许选择目录?
multiple: bool提示是否允许多选文件?
prompt: Option<SharedString>选择路径时显示给用户的提示文本
Trait Implementations§
Source§impl Clone for PathPromptOptions
impl Clone for PathPromptOptions
Auto Trait Implementations§
impl Forget for PathPromptOptions
impl Freeze for PathPromptOptions
impl Move for PathPromptOptions
impl RefUnwindSafe for PathPromptOptions
impl Send for PathPromptOptions
impl Sync for PathPromptOptions
impl Unpin for PathPromptOptions
impl UnsafeUnpin for PathPromptOptions
impl UnwindSafe for PathPromptOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more