pub fn as_int(&self) -> Result<i64, DatamodelError> {
        match &self.value {
            ast::Expression::NumericValue(value, _) => self.wrap_error_from_result(value.parse::<i64>(), "numeric"),
            ast::Expression::Any(value, _) => self.wrap_error_from_result(value.parse::<i64>(), "numeric"),
            _ => Err(self.construct_type_mismatch_error("numeric")),
        }
    }
/// Tries to convert the wrapped value to a Prisma Integer.
Tries to convert the wrapped value to a Prisma Integer.
Tries to convert the wrapped value to a Prisma Integer .
pub fn as_int(&self) -> Result<i64, DatamodelError> {
        match &self.value {
            ast::Expression::NumericValue(value, _) => self.wrap_error_from_result(value.parse::<i64>(), "numeric"),
            ast::Expression::Any(value, _) => self.wrap_error_from_result(value.parse::<i64>(), "numeric"),
            _ => Err(self.construct_type_mismatch_error("numeric")),
        }
    }
pub fn as_int ( & self ) -> Result < i64 , DatamodelError > { match & self . value { ast :: Expression :: NumericValue ( value , _ ) => self . wrap_error_from_result ( value . parse :: < i64 > ( ) , " " ) , ast :: Expression :: Any ( value , _ ) => self . wrap_error_from_result ( value . parse :: < i64 > ( ) , " " ) , _ => Err ( self . construct_type_mismatch_error ( " " ) ) , } }
Tries to convert the wrapped value to a Prisma Integer.
Tries to convert the wrapped value to a Prisma Integer .
&self
&self