pub struct ComponentProperties {
pub text: Option<String>,
pub enabled: bool,
pub visible: bool,
pub checked: bool,
pub min: Option<f32>,
pub max: Option<f32>,
pub value: Option<JsonValueNode>,
pub options: Option<Vec<(String, String)>>,
pub custom: JsonValueNode,
}Expand description
组件系统相关功能 组件属性
Fields§
§text: Option<String>文本内容
enabled: bool是否启用
visible: bool是否可见
checked: bool是否选中
min: Option<f32>最小值
max: Option<f32>最大值
value: Option<JsonValueNode>当前值
options: Option<Vec<(String, String)>>选项列表
custom: JsonValueNode自定义属性
Implementations§
Trait Implementations§
Source§impl Debug for ComponentProperties
impl Debug for ComponentProperties
Source§impl<'de> Deserialize<'de> for ComponentProperties
impl<'de> Deserialize<'de> for ComponentProperties
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ComponentProperties
impl RefUnwindSafe for ComponentProperties
impl Send for ComponentProperties
impl Sync for ComponentProperties
impl Unpin for ComponentProperties
impl UnsafeUnpin for ComponentProperties
impl UnwindSafe for ComponentProperties
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more