1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[wasm_bindgen] 5 extern "C" { 6 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BarProp , typescript_type = "BarProp")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `BarProp` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BarProp)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `BarProp`*"] 13 pub type BarProp; 14 # [wasm_bindgen (structural , catch , method , getter , js_class = "BarProp" , js_name = visible)] 15 #[doc = "Getter for the `visible` field of this object."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BarProp/visible)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `BarProp`*"] visible(this: &BarProp) -> Result<bool, JsValue>20 pub fn visible(this: &BarProp) -> Result<bool, JsValue>; 21 # [wasm_bindgen (structural , catch , method , setter , js_class = "BarProp" , js_name = visible)] 22 #[doc = "Setter for the `visible` field of this object."] 23 #[doc = ""] 24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BarProp/visible)"] 25 #[doc = ""] 26 #[doc = "*This API requires the following crate features to be activated: `BarProp`*"] set_visible(this: &BarProp, value: bool) -> Result<(), JsValue>27 pub fn set_visible(this: &BarProp, value: bool) -> Result<(), JsValue>; 28 } 29