#[repr(i32)]pub enum ObjectType {
Show 53 variants
Undefined = 0,
ObjectAccessMethod = 1,
ObjectAggregate = 2,
ObjectAmop = 3,
ObjectAmproc = 4,
ObjectAttribute = 5,
ObjectCast = 6,
ObjectColumn = 7,
ObjectCollation = 8,
ObjectConversion = 9,
ObjectDatabase = 10,
ObjectDefault = 11,
ObjectDefacl = 12,
ObjectDomain = 13,
ObjectDomconstraint = 14,
ObjectEventTrigger = 15,
ObjectExtension = 16,
ObjectFdw = 17,
ObjectForeignServer = 18,
ObjectForeignTable = 19,
ObjectFunction = 20,
ObjectIndex = 21,
ObjectLanguage = 22,
ObjectLargeobject = 23,
ObjectMatview = 24,
ObjectOpclass = 25,
ObjectOperator = 26,
ObjectOpfamily = 27,
ObjectParameterAcl = 28,
ObjectPolicy = 29,
ObjectProcedure = 30,
ObjectPublication = 31,
ObjectPublicationNamespace = 32,
ObjectPublicationRel = 33,
ObjectRole = 34,
ObjectRoutine = 35,
ObjectRule = 36,
ObjectSchema = 37,
ObjectSequence = 38,
ObjectSubscription = 39,
ObjectStatisticExt = 40,
ObjectTabconstraint = 41,
ObjectTable = 42,
ObjectTablespace = 43,
ObjectTransform = 44,
ObjectTrigger = 45,
ObjectTsconfiguration = 46,
ObjectTsdictionary = 47,
ObjectTsparser = 48,
ObjectTstemplate = 49,
ObjectType = 50,
ObjectUserMapping = 51,
ObjectView = 52,
}
Variants§
Undefined = 0
ObjectAccessMethod = 1
ObjectAggregate = 2
ObjectAmop = 3
ObjectAmproc = 4
ObjectAttribute = 5
ObjectCast = 6
ObjectColumn = 7
ObjectCollation = 8
ObjectConversion = 9
ObjectDatabase = 10
ObjectDefault = 11
ObjectDefacl = 12
ObjectDomain = 13
ObjectDomconstraint = 14
ObjectEventTrigger = 15
ObjectExtension = 16
ObjectFdw = 17
ObjectForeignServer = 18
ObjectForeignTable = 19
ObjectFunction = 20
ObjectIndex = 21
ObjectLanguage = 22
ObjectLargeobject = 23
ObjectMatview = 24
ObjectOpclass = 25
ObjectOperator = 26
ObjectOpfamily = 27
ObjectParameterAcl = 28
ObjectPolicy = 29
ObjectProcedure = 30
ObjectPublication = 31
ObjectPublicationNamespace = 32
ObjectPublicationRel = 33
ObjectRole = 34
ObjectRoutine = 35
ObjectRule = 36
ObjectSchema = 37
ObjectSequence = 38
ObjectSubscription = 39
ObjectStatisticExt = 40
ObjectTabconstraint = 41
ObjectTable = 42
ObjectTablespace = 43
ObjectTransform = 44
ObjectTrigger = 45
ObjectTsconfiguration = 46
ObjectTsdictionary = 47
ObjectTsparser = 48
ObjectTstemplate = 49
ObjectType = 50
ObjectUserMapping = 51
ObjectView = 52
Implementations§
Source§impl ObjectType
impl ObjectType
Source§impl ObjectType
impl ObjectType
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ObjectType
impl Clone for ObjectType
Source§fn clone(&self) -> ObjectType
fn clone(&self) -> ObjectType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ObjectType
impl Debug for ObjectType
Source§impl Default for ObjectType
impl Default for ObjectType
Source§fn default() -> ObjectType
fn default() -> ObjectType
Returns the “default value” for a type. Read more
Source§impl From<ObjectType> for i32
impl From<ObjectType> for i32
Source§fn from(value: ObjectType) -> i32
fn from(value: ObjectType) -> i32
Converts to this type from the input type.
Source§impl Hash for ObjectType
impl Hash for ObjectType
Source§impl Ord for ObjectType
impl Ord for ObjectType
Source§fn cmp(&self, other: &ObjectType) -> Ordering
fn cmp(&self, other: &ObjectType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ObjectType
impl PartialEq for ObjectType
Source§impl PartialOrd for ObjectType
impl PartialOrd for ObjectType
Source§impl TryFrom<i32> for ObjectType
impl TryFrom<i32> for ObjectType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ObjectType, UnknownEnumValue>
fn try_from(value: i32) -> Result<ObjectType, UnknownEnumValue>
Performs the conversion.
impl Copy for ObjectType
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more