pub struct TypeLiteral {
pub value: Literal,
pub description: Option<String>,
}Expand description
A literal value with an optional description. This is often used for enums or default values of properties.
Fields§
§value: LiteralThe value of the literal.
description: Option<String>The text description of the literal, if any.
Trait Implementations§
Source§impl Debug for TypeLiteral
impl Debug for TypeLiteral
Source§impl<'de> Deserialize<'de> for TypeLiteral
impl<'de> Deserialize<'de> for TypeLiteral
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
Source§impl PartialEq for TypeLiteral
impl PartialEq for TypeLiteral
Source§impl Serialize for TypeLiteral
impl Serialize for TypeLiteral
impl Eq for TypeLiteral
impl StructuralPartialEq for TypeLiteral
Auto Trait Implementations§
impl Freeze for TypeLiteral
impl RefUnwindSafe for TypeLiteral
impl Send for TypeLiteral
impl Sync for TypeLiteral
impl Unpin for TypeLiteral
impl UnwindSafe for TypeLiteral
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