pub struct HttpSource {
pub url: String,
pub proxy: Option<String>,
pub custom_request_headers: Option<Vec<(String, String)>>,
pub should_use_proxy: bool,
pub size_limit_bytes: Option<usize>,
pub update_interval_seconds: Option<u64>,
pub cached_file: Arc<Mutex<Option<String>>>,
pub cache_file_path: Option<String>,
}Fields§
§url: String§proxy: Option<String>§custom_request_headers: Option<Vec<(String, String)>>§should_use_proxy: bool§size_limit_bytes: Option<usize>§update_interval_seconds: Option<u64>§cached_file: Arc<Mutex<Option<String>>>§cache_file_path: Option<String>Implementations§
Source§impl HttpSource
impl HttpSource
Trait Implementations§
Source§impl Clone for HttpSource
impl Clone for HttpSource
Source§fn clone(&self) -> HttpSource
fn clone(&self) -> HttpSource
Returns a copy 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 HttpSource
impl Debug for HttpSource
Source§impl Default for HttpSource
impl Default for HttpSource
Source§fn default() -> HttpSource
fn default() -> HttpSource
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HttpSource
impl RefUnwindSafe for HttpSource
impl Send for HttpSource
impl Sync for HttpSource
impl Unpin for HttpSource
impl UnwindSafe for HttpSource
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