pub struct PythLazerHistoryClientConfig {
pub urls: Vec<Url>,
pub update_interval: Duration,
pub request_timeout: Duration,
pub cache_dir: Option<PathBuf>,
pub channel_capacity: usize,
pub access_token: Option<String>,
}Expand description
Configuration for the history client.
Fields§
§urls: Vec<Url>URLs of the history services.
update_interval: DurationInterval of queries to the history services. Note: if the request fails, it will be retried using exponential backoff regardless of this setting.
request_timeout: DurationTimeout of an individual request.
cache_dir: Option<PathBuf>Path to the cache directory that can be used to provide latest data if history service is unavailable.
channel_capacity: usizeCapacity of communication channels created by this client. It must be above zero.
access_token: Option<String>Access token for publisher or governance restricted endpoints.
Not needed for consumer facing endpoints.
Trait Implementations§
Source§impl Clone for PythLazerHistoryClientConfig
impl Clone for PythLazerHistoryClientConfig
Source§fn clone(&self) -> PythLazerHistoryClientConfig
fn clone(&self) -> PythLazerHistoryClientConfig
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 PythLazerHistoryClientConfig
impl Debug for PythLazerHistoryClientConfig
Source§impl<'de> Deserialize<'de> for PythLazerHistoryClientConfig
impl<'de> Deserialize<'de> for PythLazerHistoryClientConfig
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
Source§impl PartialEq for PythLazerHistoryClientConfig
impl PartialEq for PythLazerHistoryClientConfig
Source§fn eq(&self, other: &PythLazerHistoryClientConfig) -> bool
fn eq(&self, other: &PythLazerHistoryClientConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PythLazerHistoryClientConfig
Auto Trait Implementations§
impl Freeze for PythLazerHistoryClientConfig
impl RefUnwindSafe for PythLazerHistoryClientConfig
impl Send for PythLazerHistoryClientConfig
impl Sync for PythLazerHistoryClientConfig
impl Unpin for PythLazerHistoryClientConfig
impl UnwindSafe for PythLazerHistoryClientConfig
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
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