pub struct Attribute {
pub visibility: Option<Visibility>,
pub name: String,
pub type_name: String,
pub is_static: bool,
}Expand description
An attribute (field) member inside a class body.
Mermaid allows the type before or after the name:
+String name— typed-before (Mermaid’s primary form)+name String— typed-after (also accepted)
Both forms are normalised to (visibility, name, type) here.
Fields§
§visibility: Option<Visibility>Visibility modifier (may be None when the +/-/#/~ prefix is absent).
name: StringAttribute name.
type_name: StringDeclared type (may be empty if the source omits it).
is_static: booltrue when the $ suffix marks this attribute as static.
Trait Implementations§
impl Eq for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnsafeUnpin 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