pub struct SaveDialogOptions { /* private fields */ }
Implementations§
Source§impl SaveDialogOptions
impl SaveDialogOptions
pub fn new( button_label: Option<JsString>, default_path: Option<JsString>, filters: Option<Box<[JsValue]>>, message: Option<JsString>, name_field_label: Option<JsString>, properties: Option<Box<[JsValue]>>, security_scoped_bookmarks: Option<bool>, show_tag_field: Option<bool>, title: Option<JsString>, ) -> SaveDialogOptions
pub fn title(&self) -> Option<JsString>
pub fn set_title(&mut self, value: Option<JsString>)
pub fn default_path(&self) -> Option<JsString>
pub fn set_default_path(&mut self, value: Option<JsString>)
pub fn filters(&self) -> Option<Box<[JsValue]>>
pub fn set_filters(&mut self, value: Option<Box<[JsValue]>>)
pub fn message(&self) -> Option<JsString>
pub fn set_message(&mut self, value: Option<JsString>)
pub fn name_field_label(&self) -> Option<JsString>
pub fn set_name_field_label(&mut self, value: Option<JsString>)
pub fn show_tag_field(&self) -> Option<bool>
pub fn set_show_tag_field(&mut self, value: Option<bool>)
pub fn properties(&self) -> Option<Box<[JsValue]>>
pub fn set_properties(&mut self, value: Option<Box<[JsValue]>>)
pub fn security_scoped_bookmarks(&self) -> Option<bool>
pub fn set_security_scoped_bookmarks(&mut self, value: Option<bool>)
Trait Implementations§
Source§impl Clone for SaveDialogOptions
impl Clone for SaveDialogOptions
Source§fn clone(&self) -> SaveDialogOptions
fn clone(&self) -> SaveDialogOptions
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 SaveDialogOptions
impl Debug for SaveDialogOptions
Source§impl Default for SaveDialogOptions
impl Default for SaveDialogOptions
Source§fn default() -> SaveDialogOptions
fn default() -> SaveDialogOptions
Returns the “default value” for a type. Read more
Source§impl From<SaveDialogOptions> for JsValue
impl From<SaveDialogOptions> for JsValue
Source§fn from(value: SaveDialogOptions) -> Self
fn from(value: SaveDialogOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for SaveDialogOptions
impl FromWasmAbi for SaveDialogOptions
Source§impl IntoWasmAbi for SaveDialogOptions
impl IntoWasmAbi for SaveDialogOptions
Source§impl PartialEq for SaveDialogOptions
impl PartialEq for SaveDialogOptions
Source§impl RefFromWasmAbi for SaveDialogOptions
impl RefFromWasmAbi for SaveDialogOptions
Source§type Anchor = RcRef<SaveDialogOptions>
type Anchor = RcRef<SaveDialogOptions>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl TryFromJsValue for SaveDialogOptions
impl TryFromJsValue for SaveDialogOptions
Source§impl VectorFromWasmAbi for SaveDialogOptions
impl VectorFromWasmAbi for SaveDialogOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[SaveDialogOptions]>
Source§impl VectorIntoJsValue for SaveDialogOptions
impl VectorIntoJsValue for SaveDialogOptions
fn vector_into_jsvalue(vector: Box<[SaveDialogOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for SaveDialogOptions
impl VectorIntoWasmAbi for SaveDialogOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[SaveDialogOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for SaveDialogOptions
impl WasmDescribeVector for SaveDialogOptions
impl StructuralPartialEq for SaveDialogOptions
impl SupportsConstructor for SaveDialogOptions
impl SupportsInstanceProperty for SaveDialogOptions
impl SupportsStaticProperty for SaveDialogOptions
Auto Trait Implementations§
impl Freeze for SaveDialogOptions
impl RefUnwindSafe for SaveDialogOptions
impl !Send for SaveDialogOptions
impl !Sync for SaveDialogOptions
impl Unpin for SaveDialogOptions
impl UnwindSafe for SaveDialogOptions
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,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.