cbr-finapi-rs 0.1.0

Typed async client for CBR public APIs (TsPI, EBS, GIS AntiFraud)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{CbrApiClient, CbrApiError};

pub struct TspiClient<'a> {
    _parent: &'a CbrApiClient,
}

impl<'a> TspiClient<'a> {
    pub(crate) fn new(_parent: &'a CbrApiClient) -> Self {
        Self { _parent }
    }

    // Stub for TsPI
    pub async fn ping(&self) -> Result<bool, CbrApiError> {
        Ok(true)
    }
}