pub struct MarkupAttribute {
pub name: &'static str,
pub arguments: &'static [MarkupAttributeValue],
pub properties: &'static [(&'static str, MarkupAttributeValue)],
}Expand description
An attribute of a type or member: the data of a custom attribute of the
managed original ([DependsOn("Property")],
[TemplateContent(TemplateResultType = typeof(..))]).
name is the attribute name without the Attribute suffix; the names of
the attributes the framework itself understands are the constants of
attributes.
Fields§
§name: &'static str§arguments: &'static [MarkupAttributeValue]The constructor arguments.
properties: &'static [(&'static str, MarkupAttributeValue)]The named arguments.
Implementations§
Source§impl MarkupAttribute
impl MarkupAttribute
Sourcepub fn property(&self, name: &str) -> Option<MarkupAttributeValue>
pub fn property(&self, name: &str) -> Option<MarkupAttributeValue>
The named argument name.
Trait Implementations§
Source§impl Clone for MarkupAttribute
impl Clone for MarkupAttribute
impl Copy for MarkupAttribute
Source§impl Debug for MarkupAttribute
impl Debug for MarkupAttribute
Source§impl PartialEq for MarkupAttribute
impl PartialEq for MarkupAttribute
impl StructuralPartialEq for MarkupAttribute
Auto Trait Implementations§
impl Freeze for MarkupAttribute
impl RefUnwindSafe for MarkupAttribute
impl Send for MarkupAttribute
impl Sync for MarkupAttribute
impl Unpin for MarkupAttribute
impl UnsafeUnpin for MarkupAttribute
impl UnwindSafe for MarkupAttribute
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