pub struct PgColumn { /* private fields */ }Available on crate feature
postgres only.Implementationsยง
Sourceยงimpl PgColumn
impl PgColumn
Sourcepub fn relation_id(&self) -> Option<Oid>
pub fn relation_id(&self) -> Option<Oid>
Returns the OID of the table this column is from, if applicable.
This will be None if the column is the result of an expression.
Corresponds to column attrelid of the pg_catalog.pg_attribute table:
https://www.postgresql.org/docs/current/catalog-pg-attribute.html
Sourcepub fn relation_attribute_no(&self) -> Option<i16>
pub fn relation_attribute_no(&self) -> Option<i16>
Returns the 1-based index of this column in its parent table, if applicable.
This will be None if the column is the result of an expression.
Corresponds to column attnum of the pg_catalog.pg_attribute table:
https://www.postgresql.org/docs/current/catalog-pg-attribute.html
Trait Implementationsยง
Sourceยงimpl Column for PgColumn
impl Column for PgColumn
Sourceยงimpl<'de> Deserialize<'de> for PgColumn
impl<'de> Deserialize<'de> for PgColumn
Sourceยงfn deserialize<__D>(
__deserializer: __D,
) -> Result<PgColumn, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgColumn, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Sourceยงimpl Serialize for PgColumn
impl Serialize for PgColumn
Sourceยงfn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementationsยง
impl Freeze for PgColumn
impl RefUnwindSafe for PgColumn
impl Send for PgColumn
impl Sync for PgColumn
impl Unpin for PgColumn
impl UnwindSafe for PgColumn
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> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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