icann-rdap-client 0.0.14

An RDAP client library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::any::TypeId;

use icann_rdap_common::response::error::Error;

use super::{MdParams, ToMd, HR};

impl ToMd for Error {
    fn to_md(&self, params: MdParams) -> String {
        let mut md = String::new();
        md.push_str(&self.common.to_md(params.from_parent(TypeId::of::<Error>())));
        md.push_str(HR);
        md.push('\n');
        md
    }
}