pub struct MessageBoxOptions { /* private fields */ }Implementations§
Source§impl MessageBoxOptions
impl MessageBoxOptions
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>, ) -> MessageBoxOptions
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 MessageBoxOptions
impl Clone for MessageBoxOptions
Source§fn clone(&self) -> MessageBoxOptions
fn clone(&self) -> MessageBoxOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MessageBoxOptions
impl Debug for MessageBoxOptions
Source§impl From<MessageBoxOptions> for JsValue
impl From<MessageBoxOptions> for JsValue
Source§fn from(value: MessageBoxOptions) -> Self
fn from(value: MessageBoxOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for MessageBoxOptions
impl FromWasmAbi for MessageBoxOptions
Source§impl IntoWasmAbi for MessageBoxOptions
impl IntoWasmAbi for MessageBoxOptions
Source§impl LongRefFromWasmAbi for MessageBoxOptions
impl LongRefFromWasmAbi for MessageBoxOptions
Source§type Abi = WasmPtr<WasmRefCell<MessageBoxOptions>>
type Abi = WasmPtr<WasmRefCell<MessageBoxOptions>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<MessageBoxOptions>
type Anchor = RcRef<MessageBoxOptions>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl PartialEq for MessageBoxOptions
impl PartialEq for MessageBoxOptions
Source§fn eq(&self, other: &MessageBoxOptions) -> bool
fn eq(&self, other: &MessageBoxOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefFromWasmAbi for MessageBoxOptions
impl RefFromWasmAbi for MessageBoxOptions
Source§type Abi = WasmPtr<WasmRefCell<MessageBoxOptions>>
type Abi = WasmPtr<WasmRefCell<MessageBoxOptions>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<MessageBoxOptions>
type Anchor = RcRef<MessageBoxOptions>
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 RefMutFromWasmAbi for MessageBoxOptions
impl RefMutFromWasmAbi for MessageBoxOptions
Source§type Abi = WasmPtr<WasmRefCell<MessageBoxOptions>>
type Abi = WasmPtr<WasmRefCell<MessageBoxOptions>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<MessageBoxOptions>
type Anchor = RcRefMut<MessageBoxOptions>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl StructuralPartialEq for MessageBoxOptions
impl SupportsConstructor for MessageBoxOptions
impl SupportsInstanceProperty for MessageBoxOptions
impl SupportsStaticProperty for MessageBoxOptions
Source§impl TryFromJsValue for MessageBoxOptions
impl TryFromJsValue for MessageBoxOptions
Source§impl VectorFromWasmAbi for MessageBoxOptions
impl VectorFromWasmAbi for MessageBoxOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[MessageBoxOptions]>
Source§impl VectorIntoWasmAbi for MessageBoxOptions
impl VectorIntoWasmAbi for MessageBoxOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[MessageBoxOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for MessageBoxOptions
impl WasmDescribeVector for MessageBoxOptions
Auto Trait Implementations§
impl Freeze for MessageBoxOptions
impl RefUnwindSafe for MessageBoxOptions
impl Send for MessageBoxOptions
impl Sync for MessageBoxOptions
impl Unpin for MessageBoxOptions
impl UnsafeUnpin for MessageBoxOptions
impl UnwindSafe for MessageBoxOptions
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::AbiSource§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.