Struct FieldDescription
#[non_exhaustive]pub struct FieldDescription {
pub name: String,
pub data_type_id: u32,
}Expand description
One column of a result set.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe column name.
data_type_id: u32The Postgres OID of the column’s type.
Needed because the endpoint renders everything as JSON: bigint arrives
as a string to avoid IEEE-754 precision loss, and bytea arrives as a
\x… hex string, so the OID is the only thing distinguishing them.
Trait Implementations§
§impl Clone for FieldDescription
impl Clone for FieldDescription
§impl Debug for FieldDescription
impl Debug for FieldDescription
§impl<'de> Deserialize<'de> for FieldDescription
impl<'de> Deserialize<'de> for FieldDescription
§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
Auto Trait Implementations§
impl Freeze for FieldDescription
impl RefUnwindSafe for FieldDescription
impl Send for FieldDescription
impl Sync for FieldDescription
impl Unpin for FieldDescription
impl UnsafeUnpin 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