pub enum Response {
Empty,
Value(Value),
Row(Row),
Rows(Vec<Row>),
Error(u16),
}
Expand description
A response returned by the server
Variants§
Empty
The server returned an empty response, which usually suggests that the query was executed successfully but the server had nothing appropriate to return
Value(Value)
The server returned a value
Row(Row)
The server returned a row
Rows(Vec<Row>)
A list of rows
Error(u16)
The server returned an error code
Implementations§
source§impl Response
impl Response
sourcepub fn parse<T: FromResponse>(self) -> ClientResult<T>
pub fn parse<T: FromResponse>(self) -> ClientResult<T>
Attempt to convert the response into the given type
Trait Implementations§
source§impl PartialEq for Response
impl PartialEq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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