pub struct ComponentJson {
pub class: &'static str,
pub kind: &'static str,
pub parent: &'static str,
pub data_attrs: Vec<DataAttrJson>,
pub example_html: &'static str,
pub example_markdown: &'static str,
pub status: &'static str,
pub since: &'static str,
pub description: &'static str,
pub authorable: bool,
}Fields§
§class: &'static str§kind: &'static str§parent: &'static str§data_attrs: Vec<DataAttrJson>§example_html: &'static str§example_markdown: &'static str§status: &'static str§since: &'static str§description: &'static strTrue iff this class is the root class of an authorable shortcode
(i.e. it appears in ShortcodeKind::all().map(|k| k.root_class())).
Agents can use this flag to distinguish the 6 author-facing shortcodes
from the broader theme vocabulary.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComponentJson
impl RefUnwindSafe for ComponentJson
impl Send for ComponentJson
impl Sync for ComponentJson
impl Unpin for ComponentJson
impl UnsafeUnpin for ComponentJson
impl UnwindSafe for ComponentJson
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