pub struct Normalizer;Expand description
Normalises raw RDAP responses into typed structs.
Implementations§
Source§impl Normalizer
impl Normalizer
pub fn new() -> Normalizer
pub fn domain( &self, query: &str, raw: Value, source: &str, cached: bool, ) -> Result<DomainResponse, RdapError>
pub fn ip( &self, query: &str, raw: Value, source: &str, cached: bool, ) -> Result<IpResponse, RdapError>
pub fn asn( &self, query: u32, raw: Value, source: &str, cached: bool, ) -> Result<AsnResponse, RdapError>
pub fn nameserver( &self, query: &str, raw: Value, source: &str, cached: bool, ) -> Result<NameserverResponse, RdapError>
pub fn entity( &self, query: &str, raw: Value, source: &str, cached: bool, ) -> Result<EntityResponse, RdapError>
Trait Implementations§
Source§impl Clone for Normalizer
impl Clone for Normalizer
Source§fn clone(&self) -> Normalizer
fn clone(&self) -> Normalizer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Normalizer
impl Debug for Normalizer
Source§impl Default for Normalizer
impl Default for Normalizer
Source§fn default() -> Normalizer
fn default() -> Normalizer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Normalizer
impl RefUnwindSafe for Normalizer
impl Send for Normalizer
impl Sync for Normalizer
impl Unpin for Normalizer
impl UnsafeUnpin for Normalizer
impl UnwindSafe for Normalizer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more