1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::{constants::ReturnCode, objects::StructureRampart}; simple_accessors! { impl StructureRampart { pub fn is_public() -> bool = isPublic; } } impl StructureRampart { pub fn set_public(&self, is_public: bool) -> ReturnCode { js_unwrap! { @{self.as_ref()}.setPublic( @{is_public} ) } } }