pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub fn with_url(self, url: impl Into<String>) -> Self
pub fn with_database(self, database: impl Into<String>) -> Self
pub fn with_user(self, user: impl Into<String>) -> Self
pub fn with_password(self, password: impl Into<String>) -> Self
pub fn with_option( self, name: impl Into<String>, value: impl Into<String>, ) -> Self
pub fn insert<T: Reflection>(&self, table: &str) -> Result<Insert<T>>
pub fn inserter<T: Reflection>(&self, table: &str) -> Result<Inserter<T>>
pub fn query(&self, query: &str) -> Query
pub fn watch(&self, query: &str) -> Watch
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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