pub struct RdapConfig {
pub timeout_seconds: u64,
pub max_response_size_mb: u64,
pub user_agent: String,
pub bootstrap_refresh_hours: u64,
}Expand description
RDAP HTTP client configuration.
[rdap]
timeout_seconds = 15
max_response_size_mb = 5
user_agent = "RDAPify/0.x"
bootstrap_refresh_hours = 24Fields§
§timeout_seconds: u64Request timeout in seconds. Range: 1–60.
max_response_size_mb: u64Maximum allowed RDAP response size in MiB. Range: 1–20.
user_agent: StringUser-Agent header sent with every RDAP request.
bootstrap_refresh_hours: u64How often (hours) to refresh the IANA bootstrap registry.
Trait Implementations§
Source§impl Clone for RdapConfig
impl Clone for RdapConfig
Source§fn clone(&self) -> RdapConfig
fn clone(&self) -> RdapConfig
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 RdapConfig
impl Debug for RdapConfig
Source§impl Default for RdapConfig
impl Default for RdapConfig
Source§impl<'de> Deserialize<'de> for RdapConfigwhere
RdapConfig: Default,
impl<'de> Deserialize<'de> for RdapConfigwhere
RdapConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RdapConfig
impl RefUnwindSafe for RdapConfig
impl Send for RdapConfig
impl Sync for RdapConfig
impl Unpin for RdapConfig
impl UnsafeUnpin for RdapConfig
impl UnwindSafe for RdapConfig
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