pub fn typmod(&self) -> i32 {
        match self {
            Type::Numeric {
                constraints: Some(constraints),
            } => constraints.into_typmod(),
            Type::Char {
                length: Some(length),
            } => length.into_typmod(),
            Type::VarChar {
                max_length: Some(max_length),
            } => max_length.into_typmod(),
            Type::Array(_)
            | Type::Bool
            | Type::Bytea
            | Type::Char { length: None }
            | Type::Date
            | Type::Float4
            | Type::Float8
            | Type::Int2
            | Type::Int4
            | Type::Int8
            | Type::Interval
            | Type::Json
            | Type::Jsonb
            | Type::List(_)
            | Type::Map { .. }
            | Type::Numeric { constraints: None }
            | Type::Oid
            | Type::Record(_)
            | Type::RegClass
            | Type::RegProc
            | Type::RegType
            | Type::Text
            | Type::Time
            | Type::TimeTz
            | Type::Timestamp
            | Type::TimestampTz
            | Type::Uuid
            | Type::VarChar { max_length: None } => -1,
        }
    }
/// Returns the packed type modifier ("typmod") for the type.
///
/// The typmod is a 32-bit integer associated with the type that encodes
/// optional constraints on the type. For example, the typmod on
/// `Type::VarChar` encodes an optional constraint on the value's length.
/// Most types are never associated with a typmod.
///
/// Negative typmods indicate no constraint.
Returns the packed type modifier ("typmod") for the type.
The typmod is a 32-bit integer associated with the type that encodes
optional constraints on the type. For example, the typmod on
`Type::VarChar` encodes an optional constraint on the value's length.
Most types are never associated with a typmod.

Negative typmods indicate no constraint.
Returns the packed type modifier ( " typmod " ) for the type . The typmod is a 32 - bit integer associated with the type that encodes optional constraints on the type . For example the typmod on ` Type :: VarChar ` encodes an optional constraint on the value ' s length . Most types are never associated with a typmod . Negative typmods indicate no constraint .
pub fn typmod(&self) -> i32 {
        match self {
            Type::Numeric {
                constraints: Some(constraints),
            } => constraints.into_typmod(),
            Type::Char {
                length: Some(length),
            } => length.into_typmod(),
            Type::VarChar {
                max_length: Some(max_length),
            } => max_length.into_typmod(),
            Type::Array(_)
            | Type::Bool
            | Type::Bytea
            | Type::Char { length: None }
            | Type::Date
            | Type::Float4
            | Type::Float8
            | Type::Int2
            | Type::Int4
            | Type::Int8
            | Type::Interval
            | Type::Json
            | Type::Jsonb
            | Type::List(_)
            | Type::Map { .. }
            | Type::Numeric { constraints: None }
            | Type::Oid
            | Type::Record(_)
            | Type::RegClass
            | Type::RegProc
            | Type::RegType
            | Type::Text
            | Type::Time
            | Type::TimeTz
            | Type::Timestamp
            | Type::TimestampTz
            | Type::Uuid
            | Type::VarChar { max_length: None } => -1,
        }
    }
pub fn typmod ( & self ) -> i32 { match self { Type :: Numeric { constraints : Some ( constraints ) , } => constraints . into_typmod ( ) , Type :: Char { length : Some ( length ) , } => length . into_typmod ( ) , Type :: VarChar { max_length : Some ( max_length ) , } => max_length . into_typmod ( ) , Type :: Array ( _ ) | Type :: Bool | Type :: Bytea | Type :: Char { length : None } | Type :: Date | Type :: Float4 | Type :: Float8 | Type :: Int2 | Type :: Int4 | Type :: Int8 | Type :: Interval | Type :: Json | Type :: Jsonb | Type :: List ( _ ) | Type :: Map { .. } | Type :: Numeric { constraints : None } | Type :: Oid | Type :: Record ( _ ) | Type :: RegClass | Type :: RegProc | Type :: RegType | Type :: Text | Type :: Time | Type :: TimeTz | Type :: Timestamp | Type :: TimestampTz | Type :: Uuid | Type :: VarChar { max_length : None } => - 1 , } }
Returns the packed type modifier ("typmod") for the type.
Returns the packed type modifier ( " typmod " ) for the type .
&self