pub struct CustomProperties {
pub description: String,
pub lists: Option<Vec<String>>,
pub examples: Option<Vec<String>>,
pub images: Option<Vec<Image>>,
pub key_type: Type,
pub value_type: Type,
}Expand description
A special set of properties that the user can add an arbitrary number of.
Specifies the type of the key and value of the custom property.
Fields§
§description: StringThe text description of the property.
lists: Option<Vec<String>>A list of Markdown lists to provide additional information. Usually contained in a spoiler tag.
examples: Option<Vec<String>>A list of code-only examples about the property.
images: Option<Vec<Image>>A list of illustrative images shown next to the property.
key_type: TypeThe type of the key of the custom property.
value_type: TypeThe type of the value of the custom property.
Trait Implementations§
Source§impl Debug for CustomProperties
impl Debug for CustomProperties
Source§impl<'de> Deserialize<'de> for CustomProperties
impl<'de> Deserialize<'de> for CustomProperties
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 CustomProperties
impl RefUnwindSafe for CustomProperties
impl Send for CustomProperties
impl Sync for CustomProperties
impl Unpin for CustomProperties
impl UnwindSafe for CustomProperties
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