script::dom::bindings::codegen::Bindings::NotificationBinding

Type Alias NotificationOptions

Source
pub(crate) type NotificationOptions = NotificationOptions;

Aliased Type§

struct NotificationOptions {
Show 14 fields pub(crate) actions: Vec<NotificationAction>, pub(crate) badge: Option<USVString>, pub(crate) body: DOMString, pub(crate) data: RootedTraceableBox<Heap<Value>>, pub(crate) dir: NotificationDirection, pub(crate) icon: Option<USVString>, pub(crate) image: Option<USVString>, pub(crate) lang: DOMString, pub(crate) renotify: bool, pub(crate) requireInteraction: bool, pub(crate) silent: Option<bool>, pub(crate) tag: DOMString, pub(crate) timestamp: Option<u64>, pub(crate) vibrate: Option<UnsignedLongOrUnsignedLongSequence>,
}

Fields§

§actions: Vec<NotificationAction>§badge: Option<USVString>§body: DOMString§data: RootedTraceableBox<Heap<Value>>§dir: NotificationDirection§icon: Option<USVString>§image: Option<USVString>§lang: DOMString§renotify: bool§requireInteraction: bool§silent: Option<bool>§tag: DOMString§timestamp: Option<u64>§vibrate: Option<UnsignedLongOrUnsignedLongSequence>

Implementations

Trait Implementations

Source§

impl Default for NotificationOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl ToJSValConvertible for NotificationOptions

Source§

unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)

Convert self to a JSVal. JSAPI failure causes a panic.
Source§

impl Traceable for NotificationOptions

Source§

unsafe fn trace(&self, tracer: *mut JSTracer)

Trace self.