pub struct FieldDescription {
pub name: String,
pub table_oid: u32,
pub column_id: i16,
pub type_oid: u32,
pub type_size: i16,
pub type_modifier: i32,
pub format: i16,
}Expand description
Describes a single field (column) in a row description.
Fields§
§name: StringColumn name
table_oid: u32OID of the table (0 if not from a table)
column_id: i16Attribute number in the table (0 if not from a table)
type_oid: u32OID of the column’s data type
type_size: i16Data type size (-1 for variable-length types)
type_modifier: i32Type modifier (e.g., precision for NUMERIC)
format: i16Format code (0=text, 1=binary)
Implementations§
Trait Implementations§
Source§impl Clone for FieldDescription
impl Clone for FieldDescription
Source§fn clone(&self) -> FieldDescription
fn clone(&self) -> FieldDescription
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 FieldDescription
impl Debug for FieldDescription
Source§impl PartialEq for FieldDescription
impl PartialEq for FieldDescription
impl Eq for FieldDescription
impl StructuralPartialEq for FieldDescription
Auto Trait Implementations§
impl Freeze for FieldDescription
impl RefUnwindSafe for FieldDescription
impl Send for FieldDescription
impl Sync for FieldDescription
impl Unpin for FieldDescription
impl UnwindSafe for FieldDescription
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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).