pub struct ShortcodeAttrSpec {
pub name: &'static str,
pub asset_kinds: &'static [ExtKind],
}Expand description
One attribute a shortcode accepts on its opening fence line.
Fields§
§name: &'static strAttribute name as written in {name=…}.
asset_kinds: &'static [ExtKind]Non-empty when the attribute’s VALUE names an asset file: editors
scope asset search to these kinds. Empty for plain attrs
(cols=, button=, …).
Auto Trait Implementations§
impl Freeze for ShortcodeAttrSpec
impl RefUnwindSafe for ShortcodeAttrSpec
impl Send for ShortcodeAttrSpec
impl Sync for ShortcodeAttrSpec
impl Unpin for ShortcodeAttrSpec
impl UnsafeUnpin for ShortcodeAttrSpec
impl UnwindSafe for ShortcodeAttrSpec
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