pub struct FeedSpec {
pub kind: FeedKind,
pub uri: String,
}Expand description
A feed and where to get it.
Fields§
§kind: FeedKind§uri: StringImplementations§
Source§impl FeedSpec
impl FeedSpec
Sourcepub fn max_bytes(&self) -> u64
pub fn max_bytes(&self) -> u64
The most bytes one fetch of this feed may bring (HOL-DOGFOOD-2): an OSV dump
MAX_OSV_DUMP_BYTES, NVD and KEV MAX_FEED_BYTES.
pub fn osv(ecosystem: &str) -> Self
pub fn nvd(name: &str) -> Self
pub fn kev() -> Self
Trait Implementations§
impl Eq for FeedSpec
impl StructuralPartialEq for FeedSpec
Auto Trait Implementations§
impl Freeze for FeedSpec
impl RefUnwindSafe for FeedSpec
impl Send for FeedSpec
impl Sync for FeedSpec
impl Unpin for FeedSpec
impl UnsafeUnpin for FeedSpec
impl UnwindSafe for FeedSpec
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.