pub struct FeedConfig {
pub enabled: bool,
pub feed_type: FeedType,
pub url: String,
pub api_key: Option<String>,
pub headers: HashMap<String, String>,
pub filename: String,
pub format: FeedFormat,
pub custom_interval_seconds: Option<u64>,
}Expand description
Configuration for a specific threat intelligence feed
Fields§
§enabled: boolEnable this specific feed
feed_type: FeedTypeFeed type (determines parsing and processing)
url: StringDownload URL or API endpoint
api_key: Option<String>Optional API key or authentication token
headers: HashMap<String, String>HTTP headers for authentication
filename: StringLocal filename to save the feed
format: FeedFormatFormat of the feed data
custom_interval_seconds: Option<u64>Update interval override (if different from global)
Trait Implementations§
Source§impl Clone for FeedConfig
impl Clone for FeedConfig
Source§fn clone(&self) -> FeedConfig
fn clone(&self) -> FeedConfig
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 FeedConfig
impl Debug for FeedConfig
Source§impl<'de> Deserialize<'de> for FeedConfig
impl<'de> Deserialize<'de> for FeedConfig
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 FeedConfig
impl RefUnwindSafe for FeedConfig
impl Send for FeedConfig
impl Sync for FeedConfig
impl Unpin for FeedConfig
impl UnwindSafe for FeedConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more