pub struct NvdConfig {
pub requests_per_window: Option<u32>,
pub window_seconds: Option<u64>,
pub max_results: Option<u32>,
pub max_days_range: Option<i64>,
}Expand description
Configuration for the NVD source.
Fields§
§requests_per_window: Option<u32>Maximum number of requests per time window. Default: 50 with API key, 5 without.
window_seconds: Option<u64>Time window in seconds for rate limiting. Default: 30 seconds.
max_results: Option<u32>Maximum results to fetch per sync (None = unlimited). Set this to limit initial sync size.
max_days_range: Option<i64>Maximum days to look back for incremental sync. NVD API has a 120-day limit.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NvdConfig
impl<'de> Deserialize<'de> for NvdConfig
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 NvdConfig
impl RefUnwindSafe for NvdConfig
impl Send for NvdConfig
impl Sync for NvdConfig
impl Unpin for NvdConfig
impl UnwindSafe for NvdConfig
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