pub trait PasswordCredentialMethods<D: DomTypes> {
// Required methods
fn Password(&self) -> USVString;
fn Constructor(
cx: &mut JSContext,
global: &D::Window,
proto: Option<HandleObject<'_>>,
form: &D::HTMLFormElement,
) -> Fallible<DomRoot<D::PasswordCredential>>;
fn Constructor_(
cx: &mut JSContext,
global: &D::Window,
proto: Option<HandleObject<'_>>,
data: &PasswordCredentialData,
) -> Fallible<DomRoot<D::PasswordCredential>>;
}Required Methods§
fn Password(&self) -> USVString
fn Constructor( cx: &mut JSContext, global: &D::Window, proto: Option<HandleObject<'_>>, form: &D::HTMLFormElement, ) -> Fallible<DomRoot<D::PasswordCredential>>
fn Constructor_( cx: &mut JSContext, global: &D::Window, proto: Option<HandleObject<'_>>, data: &PasswordCredentialData, ) -> Fallible<DomRoot<D::PasswordCredential>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".