pub struct ComponentEntry {
pub class: &'static str,
pub kind: &'static str,
pub parent: &'static str,
pub data_attrs: &'static [DataAttr],
pub example_html: &'static str,
pub example_markdown: &'static str,
pub status: Status,
pub since: &'static str,
pub description: &'static str,
}Expand description
A single component contract entry.
Fields§
§class: &'static strClass name without leading . (e.g. "moss-cards").
kind: &'static strContainer / Instance / Standalone / Chrome.
parent: &'static strFor Instance kinds, the parent container’s class (or "").
data_attrs: &'static [DataAttr]Declared data-* attributes on the element with this class.
example_html: &'static strExample HTML snippet showing the class in context. Multi-line allowed.
example_markdown: &'static strExample markdown that produces this HTML. Empty for HTML-only chrome.
status: StatusStatus: confirmed / emerging / retired.
since: &'static strContract version this entry was introduced in.
description: &'static strOptional human-readable description.
Auto Trait Implementations§
impl Freeze for ComponentEntry
impl RefUnwindSafe for ComponentEntry
impl Send for ComponentEntry
impl Sync for ComponentEntry
impl Unpin for ComponentEntry
impl UnsafeUnpin for ComponentEntry
impl UnwindSafe for ComponentEntry
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