pub struct RelationMeta {
pub rel_id: u32,
pub schema: String,
pub table: String,
pub columns: Vec<ColumnMeta>,
pub replica_identity: ReplicaIdentity,
}Expand description
Relation (table) metadata.
Fields§
§rel_id: u32Relation ID (PostgreSQL OID).
schema: StringSchema name.
table: StringTable name.
columns: Vec<ColumnMeta>Column definitions.
replica_identity: ReplicaIdentityReplica identity setting.
Implementations§
Source§impl RelationMeta
impl RelationMeta
Sourcepub fn qualified_name(&self) -> String
pub fn qualified_name(&self) -> String
Get the fully qualified table name.
Sourcepub fn column_names(&self) -> Vec<&str>
pub fn column_names(&self) -> Vec<&str>
Get column names in order.
Trait Implementations§
Source§impl Clone for RelationMeta
impl Clone for RelationMeta
Source§fn clone(&self) -> RelationMeta
fn clone(&self) -> RelationMeta
Returns a duplicate 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 RelationMeta
impl Debug for RelationMeta
Source§impl<'de> Deserialize<'de> for RelationMeta
impl<'de> Deserialize<'de> for RelationMeta
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 RelationMeta
impl PartialEq for RelationMeta
Source§impl Serialize for RelationMeta
impl Serialize for RelationMeta
impl StructuralPartialEq for RelationMeta
Auto Trait Implementations§
impl Freeze for RelationMeta
impl RefUnwindSafe for RelationMeta
impl Send for RelationMeta
impl Sync for RelationMeta
impl Unpin for RelationMeta
impl UnsafeUnpin for RelationMeta
impl UnwindSafe for RelationMeta
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