pub struct ColumnDescription {
pub name: String,
pub type_name: String,
pub nullable: bool,
}Expand description
Metadata for a single output column from a prepared statement.
Obtained via PgConnection::describe — describes column names and
PostgreSQL type names without executing the query.
Fields§
§name: StringThe column name as reported by the server.
type_name: StringThe PostgreSQL type name (e.g. "int4", "text", "uuid").
nullable: boolAlways true: PostgreSQL does not expose nullability in column
descriptions returned by the extended-query protocol.
Trait Implementations§
Source§impl Clone for ColumnDescription
impl Clone for ColumnDescription
Auto Trait Implementations§
impl Freeze for ColumnDescription
impl RefUnwindSafe for ColumnDescription
impl Send for ColumnDescription
impl Sync for ColumnDescription
impl Unpin for ColumnDescription
impl UnsafeUnpin for ColumnDescription
impl UnwindSafe for ColumnDescription
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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