pub struct MessageBoxSyncOptions { /* private fields */ }
Implementations§
Source§impl MessageBoxSyncOptions
impl MessageBoxSyncOptions
pub fn new( buttons: Option<Box<[JsValue]>>, cancel_id: Option<u32>, checkbox_checked: Option<bool>, checkbox_label: Option<JsString>, default_id: Option<u32>, detail: Option<JsString>, icon: Option<NativeImage>, kind: Option<JsString>, message: JsString, no_link: Option<bool>, normalize_access_keys: Option<bool>, title: Option<JsString>, ) -> MessageBoxSyncOptions
pub fn cancel_id(&self) -> Option<u32>
pub fn set_cancel_id(&mut self, value: Option<u32>)
pub fn checkbox_checked(&self) -> Option<bool>
pub fn set_checkbox_checked(&mut self, value: Option<bool>)
pub fn checkbox_label(&self) -> Option<JsString>
pub fn set_checkbox_label(&mut self, value: Option<JsString>)
pub fn default_id(&self) -> Option<u32>
pub fn set_default_id(&mut self, value: Option<u32>)
pub fn detail(&self) -> Option<JsString>
pub fn set_detail(&mut self, value: Option<JsString>)
pub fn icon(&self) -> Option<NativeImage>
pub fn set_icon(&mut self, value: Option<NativeImage>)
pub fn kind(&self) -> Option<JsString>
pub fn set_kind(&mut self, value: Option<JsString>)
pub fn message(&self) -> JsString
pub fn set_message(&mut self, value: JsString)
pub fn no_link(&self) -> Option<bool>
pub fn set_no_link(&mut self, value: Option<bool>)
pub fn normalize_access_keys(&self) -> Option<bool>
pub fn set_normalize_access_keys(&mut self, value: Option<bool>)
pub fn title(&self) -> Option<JsString>
pub fn set_title(&mut self, value: Option<JsString>)
Trait Implementations§
Source§impl Clone for MessageBoxSyncOptions
impl Clone for MessageBoxSyncOptions
Source§fn clone(&self) -> MessageBoxSyncOptions
fn clone(&self) -> MessageBoxSyncOptions
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 MessageBoxSyncOptions
impl Debug for MessageBoxSyncOptions
Source§impl From<MessageBoxSyncOptions> for JsValue
impl From<MessageBoxSyncOptions> for JsValue
Source§fn from(value: MessageBoxSyncOptions) -> Self
fn from(value: MessageBoxSyncOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for MessageBoxSyncOptions
impl FromWasmAbi for MessageBoxSyncOptions
Source§impl IntoWasmAbi for MessageBoxSyncOptions
impl IntoWasmAbi for MessageBoxSyncOptions
Source§impl PartialEq for MessageBoxSyncOptions
impl PartialEq for MessageBoxSyncOptions
Source§impl RefFromWasmAbi for MessageBoxSyncOptions
impl RefFromWasmAbi for MessageBoxSyncOptions
Source§type Anchor = RcRef<MessageBoxSyncOptions>
type Anchor = RcRef<MessageBoxSyncOptions>
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 VectorFromWasmAbi for MessageBoxSyncOptions
impl VectorFromWasmAbi for MessageBoxSyncOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[MessageBoxSyncOptions]>
Source§impl VectorIntoJsValue for MessageBoxSyncOptions
impl VectorIntoJsValue for MessageBoxSyncOptions
fn vector_into_jsvalue(vector: Box<[MessageBoxSyncOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for MessageBoxSyncOptions
impl VectorIntoWasmAbi for MessageBoxSyncOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[MessageBoxSyncOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for MessageBoxSyncOptions
impl WasmDescribeVector for MessageBoxSyncOptions
impl StructuralPartialEq for MessageBoxSyncOptions
impl SupportsConstructor for MessageBoxSyncOptions
impl SupportsInstanceProperty for MessageBoxSyncOptions
impl SupportsStaticProperty for MessageBoxSyncOptions
Auto Trait Implementations§
impl Freeze for MessageBoxSyncOptions
impl RefUnwindSafe for MessageBoxSyncOptions
impl !Send for MessageBoxSyncOptions
impl !Sync for MessageBoxSyncOptions
impl Unpin for MessageBoxSyncOptions
impl UnwindSafe for MessageBoxSyncOptions
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
.