web_sys/features/
gen_CookieStoreDeleteOptions.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CookieStoreDeleteOptions)]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `CookieStoreDeleteOptions` dictionary."]
10    #[doc = ""]
11    #[doc = "*This API requires the following crate features to be activated: `CookieStoreDeleteOptions`*"]
12    pub type CookieStoreDeleteOptions;
13    #[doc = "Get the `domain` field of this object."]
14    #[doc = ""]
15    #[doc = "*This API requires the following crate features to be activated: `CookieStoreDeleteOptions`*"]
16    #[wasm_bindgen(method, getter = "domain")]
17    pub fn get_domain(this: &CookieStoreDeleteOptions) -> Option<::alloc::string::String>;
18    #[doc = "Change the `domain` field of this object."]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `CookieStoreDeleteOptions`*"]
21    #[wasm_bindgen(method, setter = "domain")]
22    pub fn set_domain(this: &CookieStoreDeleteOptions, val: Option<&str>);
23    #[doc = "Get the `name` field of this object."]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `CookieStoreDeleteOptions`*"]
26    #[wasm_bindgen(method, getter = "name")]
27    pub fn get_name(this: &CookieStoreDeleteOptions) -> ::alloc::string::String;
28    #[doc = "Change the `name` field of this object."]
29    #[doc = ""]
30    #[doc = "*This API requires the following crate features to be activated: `CookieStoreDeleteOptions`*"]
31    #[wasm_bindgen(method, setter = "name")]
32    pub fn set_name(this: &CookieStoreDeleteOptions, val: &str);
33    #[doc = "Get the `partitioned` field of this object."]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `CookieStoreDeleteOptions`*"]
36    #[wasm_bindgen(method, getter = "partitioned")]
37    pub fn get_partitioned(this: &CookieStoreDeleteOptions) -> Option<bool>;
38    #[doc = "Change the `partitioned` field of this object."]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `CookieStoreDeleteOptions`*"]
41    #[wasm_bindgen(method, setter = "partitioned")]
42    pub fn set_partitioned(this: &CookieStoreDeleteOptions, val: bool);
43    #[doc = "Get the `path` field of this object."]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `CookieStoreDeleteOptions`*"]
46    #[wasm_bindgen(method, getter = "path")]
47    pub fn get_path(this: &CookieStoreDeleteOptions) -> Option<::alloc::string::String>;
48    #[doc = "Change the `path` field of this object."]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `CookieStoreDeleteOptions`*"]
51    #[wasm_bindgen(method, setter = "path")]
52    pub fn set_path(this: &CookieStoreDeleteOptions, val: &str);
53}
54impl CookieStoreDeleteOptions {
55    #[doc = "Construct a new `CookieStoreDeleteOptions`."]
56    #[doc = ""]
57    #[doc = "*This API requires the following crate features to be activated: `CookieStoreDeleteOptions`*"]
58    pub fn new(name: &str) -> Self {
59        #[allow(unused_mut)]
60        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
61        ret.set_name(name);
62        ret
63    }
64    #[deprecated = "Use `set_domain()` instead."]
65    pub fn domain(&mut self, val: Option<&str>) -> &mut Self {
66        self.set_domain(val);
67        self
68    }
69    #[deprecated = "Use `set_name()` instead."]
70    pub fn name(&mut self, val: &str) -> &mut Self {
71        self.set_name(val);
72        self
73    }
74    #[deprecated = "Use `set_partitioned()` instead."]
75    pub fn partitioned(&mut self, val: bool) -> &mut Self {
76        self.set_partitioned(val);
77        self
78    }
79    #[deprecated = "Use `set_path()` instead."]
80    pub fn path(&mut self, val: &str) -> &mut Self {
81        self.set_path(val);
82        self
83    }
84}