Struct ashpd::desktop::file_chooser::SaveFilesRequest
source · pub struct SaveFilesRequest { /* private fields */ }
Expand description
A builder-pattern type to save multiple files.
Implementations§
source§impl SaveFilesRequest
impl SaveFilesRequest
sourcepub fn identifier(self, identifier: impl Into<Option<WindowIdentifier>>) -> Self
pub fn identifier(self, identifier: impl Into<Option<WindowIdentifier>>) -> Self
Sets a window identifier.
sourcepub fn title<'a>(self, title: impl Into<Option<&'a str>>) -> Self
pub fn title<'a>(self, title: impl Into<Option<&'a str>>) -> Self
Sets a title for the file chooser dialog.
sourcepub fn accept_label<'a>(self, accept_label: impl Into<Option<&'a str>>) -> Self
pub fn accept_label<'a>(self, accept_label: impl Into<Option<&'a str>>) -> Self
Sets a user-visible string to the “accept” button.
sourcepub fn modal(self, modal: impl Into<Option<bool>>) -> Self
pub fn modal(self, modal: impl Into<Option<bool>>) -> Self
Sets whether the dialog should be a modal.
sourcepub fn choices(self, choices: impl IntoIterator<Item = Choice>) -> Self
pub fn choices(self, choices: impl IntoIterator<Item = Choice>) -> Self
Adds a list of choices.
sourcepub fn current_folder<P: AsRef<Path>>(
self,
current_folder: impl Into<Option<P>>
) -> Result<Self, Error>
pub fn current_folder<P: AsRef<Path>>( self, current_folder: impl Into<Option<P>> ) -> Result<Self, Error>
Specifies the current folder path.
Trait Implementations§
source§impl Debug for SaveFilesRequest
impl Debug for SaveFilesRequest
source§impl Default for SaveFilesRequest
impl Default for SaveFilesRequest
source§fn default() -> SaveFilesRequest
fn default() -> SaveFilesRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SaveFilesRequest
impl !RefUnwindSafe for SaveFilesRequest
impl Send for SaveFilesRequest
impl Sync for SaveFilesRequest
impl Unpin for SaveFilesRequest
impl !UnwindSafe for SaveFilesRequest
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.