Struct merino_settings::providers::ProviderHttpSource
source · [−]struct ProviderHttpSource {
uri: String,
format: FileFormat,
}
Expand description
Async HTTP source for suggestion providers
Fields
uri: String
URI to the settings source
format: FileFormat
File format such as YAML, JSON, TOML, etc
Implementations
sourceimpl ProviderHttpSource
impl ProviderHttpSource
pub fn new(uri: String, format: FileFormat) -> Self
Trait Implementations
sourceimpl AsyncSource for ProviderHttpSource
impl AsyncSource for ProviderHttpSource
sourcefn collect<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Value>, ConfigError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn collect<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Value>, ConfigError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Collects all configuration properties available from this source and return a Map as an async operations. Read more
sourcefn collect_to<'life0, 'life1, 'async_trait>(
&'life0 self,
cache: &'life1 mut Value
) -> Pin<Box<dyn Future<Output = Result<(), ConfigError>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn collect_to<'life0, 'life1, 'async_trait>(
&'life0 self,
cache: &'life1 mut Value
) -> Pin<Box<dyn Future<Output = Result<(), ConfigError>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Collects all configuration properties to a provided cache.
Auto Trait Implementations
impl RefUnwindSafe for ProviderHttpSource
impl Send for ProviderHttpSource
impl Sync for ProviderHttpSource
impl Unpin for ProviderHttpSource
impl UnwindSafe for ProviderHttpSource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more