pub struct NotificationOptions { /* private fields */ }
Implementations§
Source§impl NotificationOptions
impl NotificationOptions
pub fn new( actions: Option<Box<[JsValue]>>, body: JsString, close_button_text: Option<JsString>, has_reply: Option<bool>, icon: Option<NativeImage>, reply_placeholder: Option<JsString>, silent: Option<bool>, sound: Option<JsString>, subtitle: Option<JsString>, timeout_type: Option<JsString>, title: JsString, urgency: Option<JsString>, ) -> NotificationOptions
pub fn actions(&self) -> Option<Box<[JsValue]>>
pub fn set_actions(&mut self, value: Option<Box<[JsValue]>>)
pub fn body(&self) -> JsString
pub fn set_body(&mut self, value: JsString)
pub fn has_reply(&self) -> Option<bool>
pub fn set_has_reply(&mut self, value: Option<bool>)
pub fn icon(&self) -> Option<NativeImage>
pub fn set_icon(&mut self, value: Option<NativeImage>)
pub fn reply_placeholder(&self) -> Option<JsString>
pub fn set_reply_placeholder(&mut self, value: Option<JsString>)
pub fn silent(&self) -> Option<bool>
pub fn set_silent(&mut self, value: Option<bool>)
pub fn sound(&self) -> Option<JsString>
pub fn set_sound(&mut self, value: Option<JsString>)
pub fn subtitle(&self) -> Option<JsString>
pub fn set_subtitle(&mut self, value: Option<JsString>)
pub fn timeout_type(&self) -> Option<JsString>
pub fn set_timeout_type(&mut self, value: Option<JsString>)
pub fn title(&self) -> JsString
pub fn set_title(&mut self, value: JsString)
pub fn urgency(&self) -> Option<JsString>
pub fn set_urgency(&mut self, value: Option<JsString>)
Trait Implementations§
Source§impl Clone for NotificationOptions
impl Clone for NotificationOptions
Source§fn clone(&self) -> NotificationOptions
fn clone(&self) -> NotificationOptions
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 NotificationOptions
impl Debug for NotificationOptions
Source§impl From<NotificationOptions> for JsValue
impl From<NotificationOptions> for JsValue
Source§fn from(value: NotificationOptions) -> Self
fn from(value: NotificationOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for NotificationOptions
impl FromWasmAbi for NotificationOptions
Source§impl IntoWasmAbi for NotificationOptions
impl IntoWasmAbi for NotificationOptions
Source§impl PartialEq for NotificationOptions
impl PartialEq for NotificationOptions
Source§impl RefFromWasmAbi for NotificationOptions
impl RefFromWasmAbi for NotificationOptions
Source§type Anchor = RcRef<NotificationOptions>
type Anchor = RcRef<NotificationOptions>
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 NotificationOptions
impl TryFromJsValue for NotificationOptions
Source§impl VectorFromWasmAbi for NotificationOptions
impl VectorFromWasmAbi for NotificationOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[NotificationOptions]>
Source§impl VectorIntoJsValue for NotificationOptions
impl VectorIntoJsValue for NotificationOptions
fn vector_into_jsvalue(vector: Box<[NotificationOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for NotificationOptions
impl VectorIntoWasmAbi for NotificationOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[NotificationOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for NotificationOptions
impl WasmDescribeVector for NotificationOptions
impl StructuralPartialEq for NotificationOptions
impl SupportsConstructor for NotificationOptions
impl SupportsInstanceProperty for NotificationOptions
impl SupportsStaticProperty for NotificationOptions
Auto Trait Implementations§
impl Freeze for NotificationOptions
impl RefUnwindSafe for NotificationOptions
impl !Send for NotificationOptions
impl !Sync for NotificationOptions
impl Unpin for NotificationOptions
impl UnwindSafe for NotificationOptions
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
.