pub struct DbRpcDbClient { /* private fields */ }
Implementations§
Source§impl DbRpcDbClient
impl DbRpcDbClient
pub async fn batch( &self, query: impl AsRef<str>, params: Vec<Vec<Value>>, ) -> DbRpcClientResult<Vec<ExecResult>>
pub async fn exec( &self, query: impl AsRef<str>, params: Vec<Value>, ) -> DbRpcClientResult<ExecResult>
pub async fn query<R: DeserializeOwned>( &self, query: impl AsRef<str>, params: Vec<Value>, ) -> DbRpcClientResult<Vec<R>>
Trait Implementations§
Source§impl Clone for DbRpcDbClient
impl Clone for DbRpcDbClient
Source§fn clone(&self) -> DbRpcDbClient
fn clone(&self) -> DbRpcDbClient
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 moreAuto Trait Implementations§
impl Freeze for DbRpcDbClient
impl !RefUnwindSafe for DbRpcDbClient
impl Send for DbRpcDbClient
impl Sync for DbRpcDbClient
impl Unpin for DbRpcDbClient
impl !UnwindSafe for DbRpcDbClient
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