pub enum Expression {
Document(Document),
CommentBlock(CommentBlock),
Variable(Variable),
DefaultValue(DefaultValue),
OptionValue(OptionValue),
}
Expand description
Expression
Variants§
Document(Document)
CommentBlock(CommentBlock)
Variable(Variable)
DefaultValue(DefaultValue)
OptionValue(OptionValue)
Implementations§
Source§impl Expression
impl Expression
pub fn as_variable(&self) -> Option<&Variable>
pub fn as_document(&self) -> Option<&Document>
pub fn as_default_value(&self) -> Option<&DefaultValue>
Trait Implementations§
Source§impl Debug for Expression
impl Debug for Expression
Source§impl<'de> Deserialize<'de> for Expression
impl<'de> Deserialize<'de> for Expression
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 Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
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