pub struct PropertyModel {
pub name: String,
pub parameters: Vec<ParameterModel>,
pub value_type: RustType,
pub getter: Option<AccessorModel>,
pub setter: Option<AccessorModel>,
pub attributes: Vec<AttributeModel>,
}Expand description
A plain (not registered) property of a type, instance or static, or an indexer
(name is empty and the parameters are the ones of the index).
Fields§
§name: String§parameters: Vec<ParameterModel>The parameters of an indexer.
value_type: RustType§getter: Option<AccessorModel>§setter: Option<AccessorModel>§attributes: Vec<AttributeModel>Trait Implementations§
Source§impl Clone for PropertyModel
impl Clone for PropertyModel
Source§fn clone(&self) -> PropertyModel
fn clone(&self) -> PropertyModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PropertyModel
impl Debug for PropertyModel
Source§impl Default for PropertyModel
impl Default for PropertyModel
Source§fn default() -> PropertyModel
fn default() -> PropertyModel
Returns the “default value” for a type. Read more
impl Eq for PropertyModel
Source§impl PartialEq for PropertyModel
impl PartialEq for PropertyModel
impl StructuralPartialEq for PropertyModel
Auto Trait Implementations§
impl Freeze for PropertyModel
impl RefUnwindSafe for PropertyModel
impl Send for PropertyModel
impl Sync for PropertyModel
impl Unpin for PropertyModel
impl UnsafeUnpin for PropertyModel
impl UnwindSafe for PropertyModel
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more