[][src]Struct web_sys::PushSubscriptionInit

#[repr(transparent)]pub struct PushSubscriptionInit { /* fields omitted */ }

The PushSubscriptionInit dictionary.

This API requires the following crate features to be activated: PushSubscriptionInit

Implementations

impl PushSubscriptionInit[src]

pub fn new(endpoint: &str, scope: &str) -> Self[src]

Construct a new PushSubscriptionInit.

This API requires the following crate features to be activated: PushSubscriptionInit

pub fn app_server_key(&mut self, val: Option<&Object>) -> &mut Self[src]

Change the appServerKey field of this object.

This API requires the following crate features to be activated: PushSubscriptionInit

pub fn auth_secret(&mut self, val: Option<&ArrayBuffer>) -> &mut Self[src]

Change the authSecret field of this object.

This API requires the following crate features to be activated: PushSubscriptionInit

pub fn endpoint(&mut self, val: &str) -> &mut Self[src]

Change the endpoint field of this object.

This API requires the following crate features to be activated: PushSubscriptionInit

pub fn p256dh_key(&mut self, val: Option<&ArrayBuffer>) -> &mut Self[src]

Change the p256dhKey field of this object.

This API requires the following crate features to be activated: PushSubscriptionInit

pub fn scope(&mut self, val: &str) -> &mut Self[src]

Change the scope field of this object.

This API requires the following crate features to be activated: PushSubscriptionInit

Trait Implementations

impl AsRef<JsValue> for PushSubscriptionInit[src]

impl AsRef<Object> for PushSubscriptionInit[src]

impl AsRef<PushSubscriptionInit> for PushSubscriptionInit[src]

impl Clone for PushSubscriptionInit[src]

impl Debug for PushSubscriptionInit[src]

impl Deref for PushSubscriptionInit[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for PushSubscriptionInit[src]

impl From<JsValue> for PushSubscriptionInit[src]

impl From<PushSubscriptionInit> for JsValue[src]

impl From<PushSubscriptionInit> for Object[src]

impl FromWasmAbi for PushSubscriptionInit[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for PushSubscriptionInit[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a PushSubscriptionInit[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for PushSubscriptionInit[src]

impl OptionFromWasmAbi for PushSubscriptionInit[src]

impl OptionIntoWasmAbi for PushSubscriptionInit[src]

impl<'a> OptionIntoWasmAbi for &'a PushSubscriptionInit[src]

impl PartialEq<PushSubscriptionInit> for PushSubscriptionInit[src]

impl RefFromWasmAbi for PushSubscriptionInit[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<PushSubscriptionInit>

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. Read more

impl StructuralEq for PushSubscriptionInit[src]

impl StructuralPartialEq for PushSubscriptionInit[src]

impl WasmDescribe for PushSubscriptionInit[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.