auto-delegate 0.1.3

Auto delegate allows you that automatic impl of traits and delegate their handling to child members.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use async_trait::async_trait;
use crate::sub_module::async_trait::email_readable::{EmailAddress, EmailReadable};

#[derive(Default)]
pub struct EmailReader{
    email: EmailAddress
}

#[async_trait]
impl EmailReadable for EmailReader{
    async fn read_email<'a>(&'a self) -> &'a EmailAddress {
        &self.email
    }
}