derive Debug for SimpleQueryMessage
This commit is contained in:
parent
cb82025af6
commit
be90d0e848
@ -524,6 +524,7 @@ impl CopyOutResponseBody {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct DataRowBody {
|
pub struct DataRowBody {
|
||||||
storage: Bytes,
|
storage: Bytes,
|
||||||
len: u16,
|
len: u16,
|
||||||
|
@ -239,6 +239,7 @@ pub enum AsyncMessage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Message returned by the `SimpleQuery` stream.
|
/// Message returned by the `SimpleQuery` stream.
|
||||||
|
#[derive(Debug)]
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
pub enum SimpleQueryMessage {
|
pub enum SimpleQueryMessage {
|
||||||
/// A row of data.
|
/// A row of data.
|
||||||
|
@ -196,6 +196,7 @@ impl AsName for SimpleColumn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// A row of data returned from the database by a simple query.
|
/// A row of data returned from the database by a simple query.
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct SimpleQueryRow {
|
pub struct SimpleQueryRow {
|
||||||
columns: Arc<[SimpleColumn]>,
|
columns: Arc<[SimpleColumn]>,
|
||||||
body: DataRowBody,
|
body: DataRowBody,
|
||||||
|
@ -15,6 +15,7 @@ use std::sync::Arc;
|
|||||||
use std::task::{Context, Poll};
|
use std::task::{Context, Poll};
|
||||||
|
|
||||||
/// Information about a column of a single query row.
|
/// Information about a column of a single query row.
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct SimpleColumn {
|
pub struct SimpleColumn {
|
||||||
name: String,
|
name: String,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user