Merge pull request #967 from xxchan/xxchan/missing-guan

derive Debug for SimpleQueryMessage
This commit is contained in:
Steven Fackler 2022-12-07 08:02:59 -05:00 committed by GitHub
commit 44202adc18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 0 deletions

View File

@ -524,6 +524,7 @@ impl CopyOutResponseBody {
}
}
#[derive(Debug)]
pub struct DataRowBody {
storage: Bytes,
len: u16,

View File

@ -239,6 +239,7 @@ pub enum AsyncMessage {
}
/// Message returned by the `SimpleQuery` stream.
#[derive(Debug)]
#[non_exhaustive]
pub enum SimpleQueryMessage {
/// A row of data.

View File

@ -196,6 +196,7 @@ impl AsName for SimpleColumn {
}
/// A row of data returned from the database by a simple query.
#[derive(Debug)]
pub struct SimpleQueryRow {
columns: Arc<[SimpleColumn]>,
body: DataRowBody,

View File

@ -15,6 +15,7 @@ use std::sync::Arc;
use std::task::{Context, Poll};
/// Information about a column of a single query row.
#[derive(Debug)]
pub struct SimpleColumn {
name: String,
}