pub struct AttributeModel {
pub name: String,
pub arguments: Vec<AttributeValueModel>,
pub properties: Vec<(String, AttributeValueModel)>,
}Expand description
An attribute of a type, a member or a parameter (DependsOn("Property")).
Fields§
§name: StringThe name, without the Attribute suffix.
arguments: Vec<AttributeValueModel>The positional arguments.
properties: Vec<(String, AttributeValueModel)>The named arguments (IsRequired = true).
Trait Implementations§
Source§impl Clone for AttributeModel
impl Clone for AttributeModel
Source§fn clone(&self) -> AttributeModel
fn clone(&self) -> AttributeModel
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 AttributeModel
impl Debug for AttributeModel
Source§impl Default for AttributeModel
impl Default for AttributeModel
Source§fn default() -> AttributeModel
fn default() -> AttributeModel
Returns the “default value” for a type. Read more
impl Eq for AttributeModel
Source§impl PartialEq for AttributeModel
impl PartialEq for AttributeModel
impl StructuralPartialEq for AttributeModel
Auto Trait Implementations§
impl Freeze for AttributeModel
impl RefUnwindSafe for AttributeModel
impl Send for AttributeModel
impl Sync for AttributeModel
impl Unpin for AttributeModel
impl UnsafeUnpin for AttributeModel
impl UnwindSafe for AttributeModel
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