script::dom::bindings::codegen::Bindings::SubtleCryptoBinding

Type Alias JsonWebKey

Source
pub(crate) type JsonWebKey = JsonWebKey;

Aliased Type§

struct JsonWebKey {
Show 18 fields pub alg: Option<DOMString>, pub crv: Option<DOMString>, pub d: Option<DOMString>, pub dp: Option<DOMString>, pub dq: Option<DOMString>, pub e: Option<DOMString>, pub ext: Option<bool>, pub k: Option<DOMString>, pub key_ops: Option<Vec<DOMString>>, pub kty: Option<DOMString>, pub n: Option<DOMString>, pub oth: Option<Vec<RsaOtherPrimesInfo>>, pub p: Option<DOMString>, pub q: Option<DOMString>, pub qi: Option<DOMString>, pub use_: Option<DOMString>, pub x: Option<DOMString>, pub y: Option<DOMString>,
}

Fields§

§alg: Option<DOMString>§crv: Option<DOMString>§d: Option<DOMString>§dp: Option<DOMString>§dq: Option<DOMString>§e: Option<DOMString>§ext: Option<bool>§k: Option<DOMString>§key_ops: Option<Vec<DOMString>>§kty: Option<DOMString>§n: Option<DOMString>§oth: Option<Vec<RsaOtherPrimesInfo>>§p: Option<DOMString>§q: Option<DOMString>§qi: Option<DOMString>§use_: Option<DOMString>§x: Option<DOMString>§y: Option<DOMString>

Implementations

Trait Implementations

Source§

impl Default for JsonWebKey

Source§

fn default() -> JsonWebKey

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

impl FromJSValConvertible for JsonWebKey

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

unsafe fn from_jsval( cx: *mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<JsonWebKey>, ()>

Convert val to type Self. Optional configuration of type T can be passed as the option argument. If it returns Err(()), a JSAPI exception is pending. If it returns Ok(Failure(reason)), there is no pending JSAPI exception.
Source§

impl ToJSValConvertible for JsonWebKey

Source§

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

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

impl Traceable for JsonWebKey

Source§

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

Trace self.