electron_sys/interface/
product.rs1use js_sys::JsString;
2use wasm_bindgen::prelude::*;
3
4#[wasm_bindgen]
5extern {
6 #[derive(Clone, Debug, PartialEq)]
7 pub type Product;
8
9 #[wasm_bindgen(method, getter, js_name = "contentLengths")]
10 pub fn content_lengths(this: &Product) -> Box<[JsValue]>;
11
12 #[wasm_bindgen(method, getter, js_name = "contentVersion")]
13 pub fn content_version(this: &Product) -> JsString;
14
15 #[wasm_bindgen(method, getter, js_name = "formattedPrice")]
16 pub fn formatted_price(this: &Product) -> JsString;
17
18 #[wasm_bindgen(method, getter, js_name = "isDownloadable")]
19 pub fn is_downloadable(this: &Product) -> bool;
20
21 #[wasm_bindgen(method, getter, js_name = "localizedDescription")]
22 pub fn localized_description(this: &Product) -> JsString;
23
24 #[wasm_bindgen(method, getter, js_name = "localizedTitle")]
25 pub fn localized_title(this: &Product) -> JsString;
26
27 #[wasm_bindgen(method, getter)]
28 pub fn price(this: &Product) -> f32;
29
30 #[wasm_bindgen(method, getter, js_name = "productIdentifier")]
31 pub fn product_identifier(this: &Product, value: JsString);
32
33 #[wasm_bindgen(method, setter, js_name = "contentLengths")]
34 pub fn set_content_lengths(this: &Product, value: Box<[JsValue]>);
35
36 #[wasm_bindgen(method, setter, js_name = "contentVersion")]
37 pub fn set_content_version(this: &Product, value: JsString);
38
39 #[wasm_bindgen(method, setter, js_name = "formattedPrice")]
40 pub fn set_formatted_price(this: &Product, value: JsString);
41
42 #[wasm_bindgen(method, setter, js_name = "isDownloadable")]
43 pub fn set_is_downloadable(this: &Product, value: bool);
44
45 #[wasm_bindgen(method, setter, js_name = "localizedDescription")]
46 pub fn set_localized_description(this: &Product, value: JsString);
47
48 #[wasm_bindgen(method, setter, js_name = "localizedTitle")]
49 pub fn set_localized_title(this: &Product, value: JsString);
50
51 #[wasm_bindgen(method, setter)]
52 pub fn set_price(this: &Product, value: f32);
53
54 #[wasm_bindgen(method, setter, js_name = "productIdentifier")]
55 pub fn set_product_identifier(this: &Product, value: JsString);
56}