electron_sys/interface/
cookie.rs1use js_sys::JsString;
2use wasm_bindgen::prelude::*;
3
4#[wasm_bindgen]
5extern {
6 #[derive(Clone, Debug, PartialEq)]
7 pub type Cookie;
8
9 #[wasm_bindgen(method, getter)]
10 pub fn domain(this: &Cookie) -> Option<JsString>;
11
12 #[wasm_bindgen(method, setter)]
13 pub fn set_domain(this: &Cookie, value: Option<JsString>);
14
15 #[wasm_bindgen(method, getter, js_name = "expirationDate")]
16 pub fn expiration_date(this: &Cookie) -> Option<JsString>;
17
18 #[wasm_bindgen(method, setter, js_name = "expirationDate")]
19 pub fn set_expiration_date(this: &Cookie, value: Option<JsString>);
20
21 #[wasm_bindgen(method, getter, js_name = "hostOnly")]
22 pub fn host_only(this: &Cookie) -> Option<JsString>;
23
24 #[wasm_bindgen(method, setter, js_name = "hostOnly")]
25 pub fn set_host_only(this: &Cookie, value: Option<JsString>);
26
27 #[wasm_bindgen(method, getter, js_name = "httpOnly")]
28 pub fn http_only(this: &Cookie) -> Option<JsString>;
29
30 #[wasm_bindgen(method, setter, js_name = "httpOnly")]
31 pub fn set_http_only(this: &Cookie, value: Option<JsString>);
32
33 #[wasm_bindgen(method, getter)]
34 pub fn name(this: &Cookie) -> JsString;
35
36 #[wasm_bindgen(method, setter)]
37 pub fn set_name(this: &Cookie, value: JsString);
38
39 #[wasm_bindgen(method, getter)]
40 pub fn path(this: &Cookie) -> Option<JsString>;
41
42 #[wasm_bindgen(method, setter)]
43 pub fn set_path(this: &Cookie, value: Option<JsString>);
44
45 #[wasm_bindgen(method, getter)]
46 pub fn secure(this: &Cookie) -> Option<JsString>;
47
48 #[wasm_bindgen(method, setter)]
49 pub fn set_secure(this: &Cookie, value: Option<JsString>);
50
51 #[wasm_bindgen(method, getter)]
52 pub fn session(this: &Cookie) -> Option<JsString>;
53
54 #[wasm_bindgen(method, setter)]
55 pub fn set_session(this: &Cookie, value: Option<JsString>);
56
57 #[wasm_bindgen(method, getter)]
58 pub fn value(this: &Cookie) -> JsString;
59
60 #[wasm_bindgen(method, setter)]
61 pub fn set_value(this: &Cookie, value: JsString);
62}