Struct script::dom::bindings::codegen::Bindings::TestBindingBinding::TestDictionary
source · pub struct TestDictionary {Show 26 fields
pub anyValue: RootedTraceableBox<Heap<JSVal>>,
pub booleanValue: Option<bool>,
pub byteValue: Option<i8>,
pub dict: RootedTraceableBox<TestDictionaryDefaults>,
pub doubleValue: Option<Finite<f64>>,
pub elementSequence: Option<Vec<Root<Dom<Element>>>>,
pub enumValue: Option<TestEnum>,
pub floatValue: Option<Finite<f32>>,
pub interfaceValue: Option<Root<Dom<Blob>>>,
pub longLongValue: Option<i64>,
pub longValue: Option<i32>,
pub nonRequiredNullable: Option<Option<DOMString>>,
pub nonRequiredNullable2: Option<Option<DOMString>>,
pub objectValue: Option<RootedTraceableBox<Heap<*mut JSObject>>>,
pub octetValue: Option<u8>,
pub requiredValue: bool,
pub seqDict: Option<Vec<RootedTraceableBox<TestDictionaryDefaults>>>,
pub shortValue: Option<i16>,
pub stringValue: Option<DOMString>,
pub type_: Option<DOMString>,
pub unrestrictedDoubleValue: Option<f64>,
pub unrestrictedFloatValue: Option<f32>,
pub unsignedLongLongValue: Option<u64>,
pub unsignedLongValue: Option<u32>,
pub unsignedShortValue: Option<u16>,
pub usvstringValue: Option<USVString>,
}
Fields§
§anyValue: RootedTraceableBox<Heap<JSVal>>
§booleanValue: Option<bool>
§byteValue: Option<i8>
§dict: RootedTraceableBox<TestDictionaryDefaults>
§doubleValue: Option<Finite<f64>>
§elementSequence: Option<Vec<Root<Dom<Element>>>>
§enumValue: Option<TestEnum>
§floatValue: Option<Finite<f32>>
§interfaceValue: Option<Root<Dom<Blob>>>
§longLongValue: Option<i64>
§longValue: Option<i32>
§nonRequiredNullable: Option<Option<DOMString>>
§nonRequiredNullable2: Option<Option<DOMString>>
§objectValue: Option<RootedTraceableBox<Heap<*mut JSObject>>>
§octetValue: Option<u8>
§requiredValue: bool
§seqDict: Option<Vec<RootedTraceableBox<TestDictionaryDefaults>>>
§shortValue: Option<i16>
§stringValue: Option<DOMString>
§type_: Option<DOMString>
§unrestrictedDoubleValue: Option<f64>
§unrestrictedFloatValue: Option<f32>
§unsignedLongLongValue: Option<u64>
§unsignedLongValue: Option<u32>
§unsignedShortValue: Option<u16>
§usvstringValue: Option<USVString>
Implementations§
source§impl TestDictionary
impl TestDictionary
pub fn new(
cx: SafeJSContext,
val: HandleValue<'_>
) -> Result<ConversionResult<RootedTraceableBox<TestDictionary>>, ()>
source§impl TestDictionary
impl TestDictionary
pub(crate) unsafe fn to_jsobject(
&self,
cx: *mut JSContext,
obj: MutableHandleObject<'_>
)
Trait Implementations§
source§impl ToJSValConvertible for TestDictionary
impl ToJSValConvertible for TestDictionary
Auto Trait Implementations§
impl !RefUnwindSafe for TestDictionary
impl !Send for TestDictionary
impl !Sync for TestDictionary
impl Unpin for TestDictionary
impl !UnwindSafe for TestDictionary
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert