1
0
Fork 0
icann-rdap/icann-rdap-client/src/md/help.rs
Daniel Baumann b06d3acde8
Adding upstream version 0.0.22.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-05-08 18:41:54 +02:00

21 lines
523 B
Rust

use std::any::TypeId;
use icann_rdap_common::response::Help;
use super::{MdHeaderText, MdParams, MdUtil, ToMd, HR};
impl ToMd for Help {
fn to_md(&self, params: MdParams) -> String {
let mut md = String::new();
md.push_str(&self.common.to_md(params.from_parent(TypeId::of::<Self>())));
md.push_str(HR);
md.push('\n');
md
}
}
impl MdUtil for Help {
fn get_header_text(&self) -> MdHeaderText {
MdHeaderText::builder().header_text("Server Help").build()
}
}