Struct tarantool_rs::SqlResponse
source · pub struct SqlResponse(_);Expand description
Response, returned from SQL requests.
Can be deserialized into different responses, depending on request.
Implementations§
source§impl SqlResponse
impl SqlResponse
sourcepub fn decode_select<T>(self) -> Result<Vec<T>, DecodingError>where
T: DeserializeOwned,
pub fn decode_select<T>(self) -> Result<Vec<T>, DecodingError>where T: DeserializeOwned,
Decode as response on SELECT.
sourcepub fn decode_data_vec<T>(self) -> Result<Vec<T>, DecodingError>where
T: DeserializeOwned,
pub fn decode_data_vec<T>(self) -> Result<Vec<T>, DecodingError>where T: DeserializeOwned,
Decode as data list in IPROTO_DATA tag.
This is currently used for SELECT, PRAGMA and VALUES responses.
sourcepub fn row_count(self) -> Result<u64, DecodingError>
pub fn row_count(self) -> Result<u64, DecodingError>
Get number of affected rows.
Trait Implementations§
source§impl Clone for SqlResponse
impl Clone for SqlResponse
source§fn clone(&self) -> SqlResponse
fn clone(&self) -> SqlResponse
Returns a copy 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 SqlResponse
impl Debug for SqlResponse
source§impl PartialEq<SqlResponse> for SqlResponse
impl PartialEq<SqlResponse> for SqlResponse
source§fn eq(&self, other: &SqlResponse) -> bool
fn eq(&self, other: &SqlResponse) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SqlResponse
Auto Trait Implementations§
impl RefUnwindSafe for SqlResponse
impl Send for SqlResponse
impl Sync for SqlResponse
impl Unpin for SqlResponse
impl UnwindSafe for SqlResponse
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