webbind 0.1.44

Rust bindings for the web api, auto-generated from WebIDL
Documentation
use super::*;

/// The AuthenticatorAssertionResponseJSON dictionary.
#[derive(Clone, Debug, PartialEq, PartialOrd)]
#[repr(transparent)]
pub struct AuthenticatorAssertionResponseJSON {
    inner: Any,
}

impl FromVal for AuthenticatorAssertionResponseJSON {
    fn from_val(v: &Any) -> Self {
        AuthenticatorAssertionResponseJSON { inner: v.clone() }
    }
    fn take_ownership(v: AnyHandle) -> Self {
        Self::from_val(&Any::take_ownership(v))
    }
    fn as_handle(&self) -> AnyHandle {
        self.inner.as_handle()
    }
}

impl core::ops::Deref for AuthenticatorAssertionResponseJSON {
    type Target = Any;
    fn deref(&self) -> &Self::Target {
        &self.inner
    }
}

impl core::ops::DerefMut for AuthenticatorAssertionResponseJSON {
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.inner
    }
}

impl AsRef<Any> for AuthenticatorAssertionResponseJSON {
    fn as_ref(&self) -> &Any {
        &self.inner
    }
}

impl AsMut<Any> for AuthenticatorAssertionResponseJSON {
    fn as_mut(&mut self) -> &mut Any {
        &mut self.inner
    }
}

impl From<AuthenticatorAssertionResponseJSON> for Any {
    fn from(s: AuthenticatorAssertionResponseJSON) -> Any {
        let handle = s.inner.as_handle();
        core::mem::forget(s);
        Any::take_ownership(handle)
    }
}

impl From<&AuthenticatorAssertionResponseJSON> for Any {
    fn from(s: &AuthenticatorAssertionResponseJSON) -> Any {
        s.inner.clone()
    }
}

impl AuthenticatorAssertionResponseJSON {
    /// Getter of the `clientDataJSON` attribute.
    pub fn client_data_json(&self) -> Any {
        self.inner.get("clientDataJSON").as_::<Any>()
    }

    /// Setter of the `clientDataJSON` attribute.
    pub fn set_client_data_json(&mut self, value: &Any) {
        self.inner.set("clientDataJSON", value);
    }
}
impl AuthenticatorAssertionResponseJSON {
    /// Getter of the `authenticatorData` attribute.
    pub fn authenticator_data(&self) -> Any {
        self.inner.get("authenticatorData").as_::<Any>()
    }

    /// Setter of the `authenticatorData` attribute.
    pub fn set_authenticator_data(&mut self, value: &Any) {
        self.inner.set("authenticatorData", value);
    }
}
impl AuthenticatorAssertionResponseJSON {
    /// Getter of the `signature` attribute.
    pub fn signature(&self) -> Any {
        self.inner.get("signature").as_::<Any>()
    }

    /// Setter of the `signature` attribute.
    pub fn set_signature(&mut self, value: &Any) {
        self.inner.set("signature", value);
    }
}
impl AuthenticatorAssertionResponseJSON {
    /// Getter of the `userHandle` attribute.
    pub fn user_handle(&self) -> Any {
        self.inner.get("userHandle").as_::<Any>()
    }

    /// Setter of the `userHandle` attribute.
    pub fn set_user_handle(&mut self, value: &Any) {
        self.inner.set("userHandle", value);
    }
}