pub struct ShortcodeDefinition {
pub name: String,
pub has_content: bool,
pub params: Vec<ShortcodeParam>,
}Expand description
A single shortcode definition.
Fields§
§name: StringDisplay name.
has_content: boolWhether the shortcode wraps content.
params: Vec<ShortcodeParam>Parameter definitions.
Trait Implementations§
Source§impl Clone for ShortcodeDefinition
impl Clone for ShortcodeDefinition
Source§fn clone(&self) -> ShortcodeDefinition
fn clone(&self) -> ShortcodeDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShortcodeDefinition
impl Debug for ShortcodeDefinition
Source§impl<'de> Deserialize<'de> for ShortcodeDefinition
impl<'de> Deserialize<'de> for ShortcodeDefinition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ShortcodeDefinition
impl RefUnwindSafe for ShortcodeDefinition
impl Send for ShortcodeDefinition
impl Sync for ShortcodeDefinition
impl Unpin for ShortcodeDefinition
impl UnsafeUnpin for ShortcodeDefinition
impl UnwindSafe for ShortcodeDefinition
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