pub fn as_constant_literal(&self) -> Result<String, DatamodelError> {
        match &self.value {
            ast::Expression::ConstantValue(value, _) => Ok(value.to_string()),
            ast::Expression::BooleanValue(value, _) => Ok(value.to_string()),
            ast::Expression::Any(value, _) => Ok(value.to_string()),
            _ => Err(self.construct_type_mismatch_error("constant literal")),
        }
    }
/// Unwraps the wrapped value as a constant literal..
Unwraps the wrapped value as a constant literal
Unwraps the wrapped value as a constant literal
pub fn as_constant_literal(&self) -> Result<String, DatamodelError> {
        match &self.value {
            ast::Expression::ConstantValue(value, _) => Ok(value.to_string()),
            ast::Expression::BooleanValue(value, _) => Ok(value.to_string()),
            ast::Expression::Any(value, _) => Ok(value.to_string()),
            _ => Err(self.construct_type_mismatch_error("constant literal")),
        }
    }
pub fn as_constant_literal ( & self ) -> Result < String , DatamodelError > { match & self . value { ast :: Expression :: ConstantValue ( value , _ ) => Ok ( value . to_string ( ) ) , ast :: Expression :: BooleanValue ( value , _ ) => Ok ( value . to_string ( ) ) , ast :: Expression :: Any ( value , _ ) => Ok ( value . to_string ( ) ) , _ => Err ( self . construct_type_mismatch_error ( " " ) ) , } }
Unwraps the wrapped value as a constant literal..
Unwraps the wrapped value as a constant literal ..
&self
&self