pub struct Database { /* private fields */ }Implementations§
Source§impl Database
impl Database
pub fn open() -> Database
pub fn save_profile(&self, profile: &Profile)
pub fn load_profile(&self, id: &str) -> Option<Profile>
pub fn get_profiles(&self) -> impl Iterator<Item = Profile>
pub fn from_username(&self, username: &str) -> Option<Profile>
pub fn gen_id(&self) -> String
Auto Trait Implementations§
impl Freeze for Database
impl !RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl !UnwindSafe for Database
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