pub struct Class {
pub name: String,
pub attrs: IndexMap<String, Attr>,
pub subclasses: SubclassesSpecifier,
pub hierarchy: Vec<String>,
pub collects: Vec<CollectionSpecifier>,
pub html_body: Option<String>,
pub html_header: Option<String>,
}Expand description
Scroll class definition data:
ClassName(ParentClassName) {
attribute = value
...
}Classes are used to generate random entities.
Fields§
§name: String§attrs: IndexMap<String, Attr>§subclasses: SubclassesSpecifier§hierarchy: Vec<String>§collects: Vec<CollectionSpecifier>§html_body: Option<String>§html_header: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Class
impl !RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin 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