pub struct DocService { /* private fields */ }Expand description
Document service
Implementations§
Source§impl DocService
impl DocService
Sourcepub fn new(cache: Arc<dyn Cache>) -> Result<Self>
pub fn new(cache: Arc<dyn Cache>) -> Result<Self>
Create a new document service with default TTL
§Errors
Returns an error if the HTTP client cannot be created
Sourcepub fn with_config(
cache: Arc<dyn Cache>,
cache_config: &CacheConfig,
) -> Result<Self>
pub fn with_config( cache: Arc<dyn Cache>, cache_config: &CacheConfig, ) -> Result<Self>
Create a new document service with custom cache configuration
§Errors
Returns an error if the HTTP client cannot be created
Sourcepub fn with_full_config(
cache: Arc<dyn Cache>,
cache_config: &CacheConfig,
perf_config: &PerformanceConfig,
) -> Result<Self>
pub fn with_full_config( cache: Arc<dyn Cache>, cache_config: &CacheConfig, perf_config: &PerformanceConfig, ) -> Result<Self>
Create a new document service with full configuration
§Errors
Returns an error if the HTTP client cannot be created
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DocService
impl !RefUnwindSafe for DocService
impl Send for DocService
impl Sync for DocService
impl Unpin for DocService
impl UnsafeUnpin for DocService
impl !UnwindSafe for DocService
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