ic-bn-lib-common 0.1.8

A collection of traits & types commonly used by ic-bn-lib and others
Documentation
1
2
3
4
5
6
7
8
9
10
use anyhow::Error;
use async_trait::async_trait;

use crate::types::CustomDomain;

/// Provides a list of custom domains
#[async_trait]
pub trait ProvidesCustomDomains: Sync + Send + std::fmt::Debug {
    async fn get_custom_domains(&self) -> Result<Vec<CustomDomain>, Error>;
}