pub struct PersistedDocumentsManagerBuilder { /* private fields */ }Implementations§
Source§impl PersistedDocumentsManagerBuilder
impl PersistedDocumentsManagerBuilder
Sourcepub fn add_endpoint(self, endpoint: String) -> Self
pub fn add_endpoint(self, endpoint: String) -> Self
The CDN endpoint from Hive Console target.
Sourcepub fn accept_invalid_certs(self, accept_invalid_certs: bool) -> Self
pub fn accept_invalid_certs(self, accept_invalid_certs: bool) -> Self
Accept invalid SSL certificates default: false
Sourcepub fn connect_timeout(self, connect_timeout: Duration) -> Self
pub fn connect_timeout(self, connect_timeout: Duration) -> Self
Connection timeout for the Hive Console CDN requests. Default: 5 seconds
Sourcepub fn request_timeout(self, request_timeout: Duration) -> Self
pub fn request_timeout(self, request_timeout: Duration) -> Self
Request timeout for the Hive Console CDN requests. Default: 15 seconds
Sourcepub fn retry_policy(self, retry_policy: ExponentialBackoff) -> Self
pub fn retry_policy(self, retry_policy: ExponentialBackoff) -> Self
Retry policy for fetching persisted documents Default: ExponentialBackoff with max 3 retries
Sourcepub fn max_retries(self, max_retries: u32) -> Self
pub fn max_retries(self, max_retries: u32) -> Self
Maximum number of retries for fetching persisted documents Default: ExponentialBackoff with max 3 retries
Sourcepub fn cache_size(self, cache_size: u64) -> Self
pub fn cache_size(self, cache_size: u64) -> Self
Size of the in-memory cache for persisted documents Default: 10,000 entries
Sourcepub fn negative_cache_ttl(self, ttl: Duration) -> Self
pub fn negative_cache_ttl(self, ttl: Duration) -> Self
TTL for negative cache entries (failed lookups / not found responses).
When set, repeated misses for the same document id are served from in-memory cache until the TTL expires.
Sourcepub fn circuit_breaker(self, circuit_breaker: CircuitBreakerBuilder) -> Self
pub fn circuit_breaker(self, circuit_breaker: CircuitBreakerBuilder) -> Self
Circuit breaker configuration for persisted document CDN requests.
Sourcepub fn user_agent(self, user_agent: String) -> Self
pub fn user_agent(self, user_agent: String) -> Self
User-Agent header to be sent with each request
pub fn build(self) -> Result<PersistedDocumentsManager, PersistedDocumentsError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PersistedDocumentsManagerBuilder
impl RefUnwindSafe for PersistedDocumentsManagerBuilder
impl Send for PersistedDocumentsManagerBuilder
impl Sync for PersistedDocumentsManagerBuilder
impl Unpin for PersistedDocumentsManagerBuilder
impl UnsafeUnpin for PersistedDocumentsManagerBuilder
impl UnwindSafe for PersistedDocumentsManagerBuilder
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
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>
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>
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