pub struct PropSchema {
pub key: &'static str,
pub label: &'static str,
pub doc: &'static str,
pub default_value: DefaultPropVal,
pub hint: PropHint,
pub read_only: bool,
}Expand description
Schema metadata defining an individual node property.
Fields§
§key: &'static str§label: &'static str§doc: &'static strOne-line description surfaced as a hover tooltip in the inspector
and as the Description column in the generated node reference
(docs/reference/nodes/*.md). Required (no default) so a prop
without docs fails to compile.
default_value: DefaultPropVal§hint: PropHint§read_only: boolTrait Implementations§
Source§impl Clone for PropSchema
impl Clone for PropSchema
impl Copy for PropSchema
Auto Trait Implementations§
impl Forget for PropSchema
impl Freeze for PropSchema
impl Move for PropSchema
impl RefUnwindSafe for PropSchema
impl Send for PropSchema
impl Sync for PropSchema
impl Unpin for PropSchema
impl UnsafeUnpin for PropSchema
impl UnwindSafe for PropSchema
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