pub struct PropertyNode {
pub id: PropertyId,
pub label: String,
pub kind: PropertyNodeKind,
pub value: Option<PropertyValue>,
pub editor: Option<PropertyEditor>,
pub parent: Option<PropertyId>,
pub children: Vec<PropertyId>,
pub enabled: bool,
pub hidden: bool,
pub read_only: bool,
pub modified: bool,
pub validation: Option<String>,
}Expand description
One node in a PropertyModel.
Fields§
§id: PropertyIdStable identifier.
label: StringDisplay label.
kind: PropertyNodeKindGroup row or editable property.
value: Option<PropertyValue>The value (properties only).
editor: Option<PropertyEditor>The editor family (properties only).
parent: Option<PropertyId>Parent node, None for roots.
children: Vec<PropertyId>Children in display order.
enabled: boolWhether the node accepts user edits (default true). The programmatic
PropertyModel::set_value path still applies to disabled nodes.
Whether the node and its subtree are omitted from projections (default false).
read_only: boolWhether both edit paths reject value changes (default false).
modified: boolDirty marker set by a real value change; cleared by the application
through PropertyModel::clear_modified.
validation: Option<String>Application-facing validation message (None when the value is
considered valid).
Trait Implementations§
Source§impl Clone for PropertyNode
impl Clone for PropertyNode
Source§impl Debug for PropertyNode
impl Debug for PropertyNode
Source§impl PartialEq for PropertyNode
impl PartialEq for PropertyNode
impl StructuralPartialEq for PropertyNode
Auto Trait Implementations§
impl Forget for PropertyNode
impl Freeze for PropertyNodewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<PropertyValue>: Freeze,
PhantomData<PropertyId>: Freeze,
impl Move for PropertyNode
impl RefUnwindSafe for PropertyNode
impl Send for PropertyNodewhere
RawVecInner: Send,
impl Sync for PropertyNodewhere
RawVecInner: Sync,
impl Unpin for PropertyNode
impl UnsafeUnpin for PropertyNodewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<PropertyValue>: UnsafeUnpin,
PhantomData<PropertyId>: UnsafeUnpin,
impl UnwindSafe for PropertyNodewhere
RawVecInner: UnwindSafe,
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