pub struct TypeName {
pub names: Vec<QualifiedName>,
pub type_oid: Option<Value>,
pub setof: bool,
pub pct_type: bool,
pub typmods: Vec<Value>,
pub typemod: i32,
pub array_bounds: Vec<Value>,
pub location: i32,
}
Expand description
TypeName - specifies a type in definitions
For TypeName structures generated internally, it is often easier to specify the type by OID than by name. If “names” is NIL then the actual type OID is given by typeOid, otherwise typeOid is unused. Similarly, if “typmods” is NIL then the actual typmod is expected to be prespecified in typemod, otherwise typemod is unused.
If pct_type is true, then names is actually a field name and we look up the type of that field. Otherwise (the normal case), names is a type name possibly qualified with schema and database name.
Fields§
§names: Vec<QualifiedName>
qualified name (list of Value strings)
type_oid: Option<Value>
type identified by OID
setof: bool
is a set?
pct_type: bool
%TYPE specified?
typmods: Vec<Value>
type modifier expression(s)
typemod: i32
prespecified type modifier
array_bounds: Vec<Value>
§location: i32
token location, or -1 if unknown
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TypeName
impl<'de> Deserialize<'de> for TypeName
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
Auto Trait Implementations§
impl Freeze for TypeName
impl RefUnwindSafe for TypeName
impl Send for TypeName
impl Sync for TypeName
impl Unpin for TypeName
impl UnwindSafe for TypeName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more