#[repr(u8)]pub enum ObjectType {
Show 48 variants
AccessMethod = 0,
Aggregate = 1,
Amop = 2,
Amproc = 3,
Attribute = 4,
Cast = 5,
Column = 6,
Collation = 7,
Conversion = 8,
Database = 9,
Default = 10,
Defacl = 11,
Domain = 12,
Domconstraint = 13,
EventTrigger = 14,
Extension = 15,
Fdw = 16,
ForeignServer = 17,
ForeignTable = 18,
Function = 19,
Index = 20,
Language = 21,
Largeobject = 22,
Matview = 23,
Opclass = 24,
Operator = 25,
Opfamily = 26,
Policy = 27,
Publication = 28,
PublicationRel = 29,
Role = 30,
Rule = 31,
Schema = 32,
Sequence = 33,
Subscription = 34,
StatisticExt = 35,
TabConstraint = 36,
Table = 37,
Tablespace = 38,
Transform = 39,
Trigger = 40,
TsConfiguration = 41,
TsDictionary = 42,
TsParser = 43,
TsTemplate = 44,
Type = 45,
UserMapping = 46,
View = 47,
}
Expand description
When a command can act on several kinds of objects with only one parse structure required, use these constants to designate the object type. Note that commands typically don’t support all the types.
Variants§
AccessMethod = 0
Aggregate = 1
Amop = 2
Amproc = 3
Attribute = 4
type’s attribute, when distinct from column
Cast = 5
Column = 6
Collation = 7
Conversion = 8
Database = 9
Default = 10
Defacl = 11
Domain = 12
Domconstraint = 13
EventTrigger = 14
Extension = 15
Fdw = 16
ForeignServer = 17
ForeignTable = 18
Function = 19
Index = 20
Language = 21
Largeobject = 22
Matview = 23
Opclass = 24
Operator = 25
Opfamily = 26
Policy = 27
Publication = 28
PublicationRel = 29
Role = 30
Rule = 31
Schema = 32
Sequence = 33
Subscription = 34
StatisticExt = 35
TabConstraint = 36
Table = 37
Tablespace = 38
Transform = 39
Trigger = 40
TsConfiguration = 41
TsDictionary = 42
TsParser = 43
TsTemplate = 44
Type = 45
UserMapping = 46
View = 47
Trait Implementations§
Source§impl Debug for ObjectType
impl Debug for ObjectType
Source§impl<'de> Deserialize<'de> for ObjectType
impl<'de> Deserialize<'de> for ObjectType
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
Source§impl PartialEq for ObjectType
impl PartialEq for ObjectType
Source§impl Serialize for ObjectType
impl Serialize for ObjectType
impl StructuralPartialEq for ObjectType
Auto Trait Implementations§
impl Freeze for ObjectType
impl RefUnwindSafe for ObjectType
impl Send for ObjectType
impl Sync for ObjectType
impl Unpin for ObjectType
impl UnwindSafe for ObjectType
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