1#[derive(Clone, Copy, Debug, PartialEq, Eq)]
2pub enum Kind {
3 Array(crate::Oid),
4 BitString,
5 Boolean,
6 Composite,
7 DateTime,
8 Enum,
9 Geometric,
10 Internal,
11 Network,
12 Numeric,
13 Pseudo,
14 Range(crate::Oid),
15 String,
16 Timestamp,
17 Unknow,
18 UserDefined,
19}
20
21#[derive(Clone, Debug, PartialEq, Eq)]
22pub struct Type {
23 pub oid: crate::Oid,
24 pub descr: &'static str,
25 pub name: &'static str,
26 pub kind: Kind,
27}
28
29include!("gen.rs");
30
31impl From<Type> for crate::Oid {
32 fn from(ty: Type) -> crate::Oid {
33 ty.oid
34 }
35}