src/check/help.rs
raw| 1 | use std::any::TypeId; |
| 2 | |
| 3 | use crate::response::help::Help; |
| 4 | |
| 5 | use super::{CheckParams, Checks, GetChecks, GetGroupChecks}; |
| 6 | |
| 7 | impl GetChecks for Help { |
| 8 | fn get_checks(&self, index: Option<usize>, params: CheckParams) -> super::Checks { |
| 9 | let sub_checks = { |
| 10 | self.common |
| 11 | .get_group_checks(params.from_parent(TypeId::of::<Self>())) |
| 12 | }; |
| 13 | Checks { |
| 14 | rdap_struct: super::RdapStructure::Help, |
| 15 | index, |
| 16 | items: vec![], |
| 17 | sub_checks, |
| 18 | } |
| 19 | } |
| 20 | } |