pub struct OSqliteMan { /* private fields */ }Implementations§
Source§impl OSqliteMan
impl OSqliteMan
pub async fn init(sql_url: String) -> Result<Self>
pub async fn init_table(pool: Pool<Sqlite>) -> Result<()>
pub async fn add_user(&self, user: UserOption) -> Result<()>
pub async fn init_conf(&self, conf: ConfOption) -> Result<()>
pub async fn get_user_id(self, _user: UserOption) -> Result<Option<i32>>
pub async fn get_conf_id(self, conf_name: String) -> Result<Option<i32>>
pub async fn read_auth(self, auth: AuthOption) -> Result<Option<String>>
pub async fn save_auth(self, auth: AuthOption) -> Result<()>
pub async fn get_all_user_conf( self, uconf: UconfOption, ) -> Result<Vec<UconfOption>>
pub async fn read_user_conf(self, uconf: UconfOption) -> Result<Option<String>>
pub async fn save_user_conf(self, uconf: UconfOption) -> Result<()>
pub async fn remove_user_conf(self, uconf: UconfOption) -> Result<()>
Trait Implementations§
Source§impl Clone for OSqliteMan
impl Clone for OSqliteMan
Source§fn clone(&self) -> OSqliteMan
fn clone(&self) -> OSqliteMan
Returns a duplicate 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 OSqliteMan
impl !RefUnwindSafe for OSqliteMan
impl Send for OSqliteMan
impl Sync for OSqliteMan
impl Unpin for OSqliteMan
impl !UnwindSafe for OSqliteMan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more