Struct libfortress::Database [−][src]
pub struct Database { pub do_not_set_testing: bool, // some fields omitted }
Fields
do_not_set_testing: bool
Methods
impl Database
[src]
impl Database
pub fn new_with_password<U: AsRef<str>, P: AsRef<str>>(
username: U,
password: P
) -> Database
[src]
pub fn new_with_password<U: AsRef<str>, P: AsRef<str>>(
username: U,
password: P
) -> Database
pub fn change_password<A: AsRef<str>, B: AsRef<str>>(
&mut self,
username: A,
password: B
)
[src]
pub fn change_password<A: AsRef<str>, B: AsRef<str>>(
&mut self,
username: A,
password: B
)
pub fn get_username(&self) -> &str
[src]
pub fn get_username(&self) -> &str
pub fn get_root(&self) -> &Directory
[src]
pub fn get_root(&self) -> &Directory
pub fn get_root_mut(&mut self) -> &mut Directory
[src]
pub fn get_root_mut(&mut self) -> &mut Directory
pub fn new_entry(&mut self)
[src]
pub fn new_entry(&mut self)
pub fn add_entry(&mut self, entry: Entry)
[src]
pub fn add_entry(&mut self, entry: Entry)
pub fn get_entry_by_id(&self, id: &ID) -> Option<&Entry>
[src]
pub fn get_entry_by_id(&self, id: &ID) -> Option<&Entry>
pub fn get_entry_by_id_mut(&mut self, id: &ID) -> Option<&mut Entry>
[src]
pub fn get_entry_by_id_mut(&mut self, id: &ID) -> Option<&mut Entry>
pub fn save_to_path<P: AsRef<Path>>(&self, path: P) -> Result<()>
[src]
pub fn save_to_path<P: AsRef<Path>>(&self, path: P) -> Result<()>
pub fn load_from_path<P: AsRef<Path>, A: AsRef<str>>(
path: P,
password: A
) -> Result<Database>
[src]
pub fn load_from_path<P: AsRef<Path>, A: AsRef<str>>(
path: P,
password: A
) -> Result<Database>
pub fn sync<U: IntoUrl>(&mut self, url: U) -> bool
[src]
pub fn sync<U: IntoUrl>(&mut self, url: U) -> bool
Trait Implementations
impl Eq for Database
[src]
impl Eq for Database
impl PartialEq for Database
[src]
impl PartialEq for Database
fn eq(&self, other: &Database) -> bool
[src]
fn eq(&self, other: &Database) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Database) -> bool
[src]
fn ne(&self, other: &Database) -> bool
This method tests for !=
.
impl Debug for Database
[src]
impl Debug for Database
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Database
[src]
impl Clone for Database