pub struct RelationCatalogOids {
pub relation: u32,
pub row_type: Option<u32>,
pub array_type: Option<u32>,
pub rule: Option<u32>,
}Expand description
Relation OIDs as the database’s counter allocated them, in PostgreSQL’s order: the relation, the array type, the row type and then a view’s rule. Relations created before OIDs were recorded derive them from their identity instead, and never change them.
Fields§
§relation: u32§row_type: Option<u32>§array_type: Option<u32>§rule: Option<u32>Implementations§
Source§impl RelationCatalogOids
impl RelationCatalogOids
Sourcepub fn legacy(kind: RelationOidKind, object_id: &[u8; 16]) -> Self
pub fn legacy(kind: RelationOidKind, object_id: &[u8; 16]) -> Self
The OIDs a relation created before OIDs were recorded derives from its identity. Such relations have no recorded array type.
Sourcepub fn reltype(&self) -> u32
pub fn reltype(&self) -> u32
The row type OID pg_class.reltype reports: zero for relations without one.
Sourcepub fn claimed(&self) -> impl Iterator<Item = u32>
pub fn claimed(&self) -> impl Iterator<Item = u32>
Every OID the relation claims, for occupancy checks.
Sourcepub fn is_valid_for(&self, kind: RelationOidKind) -> bool
pub fn is_valid_for(&self, kind: RelationOidKind) -> bool
Whether the OIDs are well formed for the kind: every recorded OID is a user OID, and exactly the companions the kind has are present.
Trait Implementations§
Source§impl Clone for RelationCatalogOids
impl Clone for RelationCatalogOids
impl Copy for RelationCatalogOids
Source§impl Debug for RelationCatalogOids
impl Debug for RelationCatalogOids
Source§impl<'de> Deserialize<'de> for RelationCatalogOids
impl<'de> Deserialize<'de> for RelationCatalogOids
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
impl Eq for RelationCatalogOids
Source§impl PartialEq for RelationCatalogOids
impl PartialEq for RelationCatalogOids
Source§impl Serialize for RelationCatalogOids
impl Serialize for RelationCatalogOids
impl StructuralPartialEq for RelationCatalogOids
Auto Trait Implementations§
impl Freeze for RelationCatalogOids
impl RefUnwindSafe for RelationCatalogOids
impl Send for RelationCatalogOids
impl Sync for RelationCatalogOids
impl Unpin for RelationCatalogOids
impl UnsafeUnpin for RelationCatalogOids
impl UnwindSafe for RelationCatalogOids
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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