pub struct ShortcodeParam {
pub name: String,
pub required: bool,
pub default: Option<String>,
}Expand description
A shortcode parameter.
Fields§
§name: StringParameter name.
required: boolWhether the parameter is required.
default: Option<String>Default value.
Trait Implementations§
Source§impl Clone for ShortcodeParam
impl Clone for ShortcodeParam
Source§fn clone(&self) -> ShortcodeParam
fn clone(&self) -> ShortcodeParam
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 ShortcodeParam
impl Debug for ShortcodeParam
Source§impl<'de> Deserialize<'de> for ShortcodeParam
impl<'de> Deserialize<'de> for ShortcodeParam
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 ShortcodeParam
impl RefUnwindSafe for ShortcodeParam
impl Send for ShortcodeParam
impl Sync for ShortcodeParam
impl Unpin for ShortcodeParam
impl UnsafeUnpin for ShortcodeParam
impl UnwindSafe for ShortcodeParam
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