File: dbus_service.rs

package info (click to toggle)
rust-oo7 0.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 644 kB
  • sloc: makefile: 2
file content (16 lines) | stat: -rw-r--r-- 573 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[tokio::main]
async fn main() -> oo7::Result<()> {
    let service = oo7::dbus::Service::new().await?;

    let collection = service.default_collection().await?;
    let items = collection.search_items(&[("type", "token")]).await?;
    for item in items {
        println!("{}", item.label().await?);
        println!("{}", item.is_locked().await?);
        println!("{:#?}", item.created().await?);
        println!("{:#?}", item.modified().await?);
        println!("{:#?}", item.attributes().await?);
        println!("{:#?}", item.secret().await?);
    }
    Ok(())
}