pub enum PropertyDefault {
Description(String),
Literal(TypeLiteral),
}Expand description
The default value of a Property.
Either a textual PropertyDefault::Description or a PropertyDefault::Literal value.
Variants§
Description(String)
A textual description of the default value.
Literal(TypeLiteral)
A literal value of the default value.
Trait Implementations§
Source§impl Debug for PropertyDefault
impl Debug for PropertyDefault
Source§impl<'de> Deserialize<'de> for PropertyDefault
impl<'de> Deserialize<'de> for PropertyDefault
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 PropertyDefault
impl PartialEq for PropertyDefault
Source§impl Serialize for PropertyDefault
impl Serialize for PropertyDefault
impl Eq for PropertyDefault
impl StructuralPartialEq for PropertyDefault
Auto Trait Implementations§
impl Freeze for PropertyDefault
impl RefUnwindSafe for PropertyDefault
impl Send for PropertyDefault
impl Sync for PropertyDefault
impl Unpin for PropertyDefault
impl UnwindSafe for PropertyDefault
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