pub struct Class {
pub name: String,
pub stereotype: Option<Stereotype>,
pub members: Vec<Member>,
}Expand description
One class in a ClassDiagram.
Classes are identified by name. They may have zero or more members and an
optional stereotype. Classes can be forward-declared (mentioned only in a
relationship) with an empty members list.
Fields§
§name: StringUnique class name (case-sensitive).
stereotype: Option<Stereotype>Optional UML stereotype (<<interface>>, <<enumeration>>, etc.).
members: Vec<Member>Members declared in the { … } body, in source order.
Implementations§
Trait Implementations§
impl Eq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnsafeUnpin for Class
impl UnwindSafe for Class
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