]>
git.proxmox.com Git - rustc.git/blob - vendor/web-sys/src/features/gen_DnsCacheDict.rs
1 #![allow(unused_imports)]
4 use wasm_bindgen
::prelude
::*;
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DNSCacheDict)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `DnsCacheDict` dictionary."]
11 #[doc = "*This API requires the following crate features to be activated: `DnsCacheDict`*"]
12 pub type DnsCacheDict
;
15 #[doc = "Construct a new `DnsCacheDict`."]
17 #[doc = "*This API requires the following crate features to be activated: `DnsCacheDict`*"]
18 pub fn new() -> Self {
20 let mut ret
: Self = ::wasm_bindgen
::JsCast
::unchecked_into(::js_sys
::Object
::new());
23 #[doc = "Change the `entries` field of this object."]
25 #[doc = "*This API requires the following crate features to be activated: `DnsCacheDict`*"]
26 pub fn entries(&mut self, val
: &::wasm_bindgen
::JsValue
) -> &mut Self {
27 use wasm_bindgen
::JsValue
;
28 let r
= ::js_sys
::Reflect
::set(
30 &JsValue
::from("entries"),
35 "setting properties should never fail on our dictionary objects"
41 impl Default
for DnsCacheDict
{
42 fn default() -> Self {