Enum envuse_parser::parser::ast::Expression
source · 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