this-me 0.1.7

Encrypted identity store CLI tool (this.me)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::have::*;
use crate::entity::{device::Device, wallet::Wallet, car::Car, house::House};
use std::collections::HashMap;
pub struct Relation<'a> {
    pub data: HashMap<&'a str, &'a dyn std::fmt::Debug>,
}

pub fn have_relation<'a>(b: &Relation<'a>) -> bool {
    match b {
        Relation::Device(d) => have(&Some(d)),
        Relation::Wallet(w) => have(&Some(w)),
        Relation::Car(c) => have(&Some(c)),
        Relation::House(h) => have(&Some(h)),
    }
}