pub struct CollectorFile {
pub path: String,
pub types: Vec<String>,
pub compression: Compression,
pub size: Option<u64>,
pub sha256: Option<String>,
pub last_modified: NaiveDateTime,
pub start: Option<NaiveDateTime>,
pub end: Option<NaiveDateTime>,
}Fields§
§path: String§types: Vec<String>§compression: Compression§size: Option<u64>§sha256: Option<String>§last_modified: NaiveDateTime§start: Option<NaiveDateTime>§end: Option<NaiveDateTime>Implementations§
Source§impl CollectorFile
impl CollectorFile
pub fn file_name(&self) -> &str
pub async fn fetch( &self, base_url: &str, timeout: Option<Duration>, retries: u32, ) -> Result<Vec<u8>>
pub async fn download_to( &self, base_url: &str, directory: &Path, timeout: Option<Duration>, retries: u32, overwrite: bool, ) -> Result<PathBuf>
pub async fn read( &self, base_url: &str, descriptor_type: Option<&str>, request: &CollectorRequest, ) -> Result<Vec<Descriptor>>
Trait Implementations§
Source§impl Clone for CollectorFile
impl Clone for CollectorFile
Source§impl Debug for CollectorFile
impl Debug for CollectorFile
impl Eq for CollectorFile
Source§impl PartialEq for CollectorFile
impl PartialEq for CollectorFile
impl StructuralPartialEq for CollectorFile
Auto Trait Implementations§
impl Freeze for CollectorFile
impl RefUnwindSafe for CollectorFile
impl Send for CollectorFile
impl Sync for CollectorFile
impl Unpin for CollectorFile
impl UnsafeUnpin for CollectorFile
impl UnwindSafe for CollectorFile
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
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.