[−][src]Struct keepass::Group
A database group with child groups and entries
Fields
name: String
The name of the group
child_groups: HashMap<String, Group>
The list of child groups
entries: HashMap<String, Entry>
The list of entries in this group
Implementations
impl Group
[src]
pub fn get(&self, path: &[&str]) -> Option<Node<'_>>
[src]
Recursively get a Group or Entry by specifying a path relative to the current Group
use keepass::{Database, Node}; use std::{fs::File, path::Path}; let path = Path::new("tests/resources/test_db_with_password.kdbx"); let db = Database::open(&mut File::open(path).unwrap(), Some("demopass"), None).unwrap(); if let Some(Node::Entry(e)) = db.root.get(&["General", "Sample Entry #2"]) { println!("User: {}", e.get_username().unwrap()); }
impl<'a> Group
[src]
Trait Implementations
impl Debug for Group
[src]
impl Default for Group
[src]
impl Eq for Group
[src]
impl<'a> IntoIterator for &'a Group
[src]
type Item = Node<'a>
The type of the elements being iterated over.
type IntoIter = NodeIter<'a>
Which kind of iterator are we turning this into?
fn into_iter(self) -> NodeIter<'a>ⓘ
[src]
impl PartialEq<Group> for Group
[src]
impl StructuralEq for Group
[src]
impl StructuralPartialEq for Group
[src]
Auto Trait Implementations
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,