zlicenser-server 0.1.2

Server library for the zlicenser hardware-bound software licensing framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use uuid::Uuid;

#[async_trait::async_trait]
pub trait EmailTransport: Send + Sync {
    async fn send_grant_confirmation(&self, license_id: Uuid) -> crate::Result<()>;
}

pub struct NoopEmailTransport;

#[async_trait::async_trait]
impl EmailTransport for NoopEmailTransport {
    async fn send_grant_confirmation(&self, _license_id: Uuid) -> crate::Result<()> {
        Ok(())
    }
}