pub struct Attribute {
pub content: Option<SimpleType>,
pub name: Option<String>,
pub ref: Option<String>,
pub type: Option<String>,
pub use: AttributeUse,
pub default: Option<String>,
}Expand description
Definition of an attribute on a type.
Fields§
§content: Option<SimpleType>Attribute content.
name: Option<String>Attribute name.
ref: Option<String>Attribute reference.
type: Option<String>Attribute type.
use: AttributeUseUsage patterns.
default: Option<String>Attribute default value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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