pub struct PreviewServiceConfig {
pub cache_capacity: usize,
pub cache_strategy: CacheStrategy,
pub max_concurrent_requests: usize,
pub default_fetcher: Option<Fetcher>,
}Fields§
§cache_capacity: usize§cache_strategy: CacheStrategy§max_concurrent_requests: usize§default_fetcher: Option<Fetcher>Implementations§
Source§impl PreviewServiceConfig
impl PreviewServiceConfig
pub fn new(cache_capacity: usize) -> Self
pub fn with_default_fetcher(self, fetcher: Fetcher) -> Self
pub fn with_max_concurrent_requests( self, max_concurrent_requests: usize, ) -> Self
pub fn with_cache_strategy(self, cache_strategy: CacheStrategy) -> Self
Auto Trait Implementations§
impl Freeze for PreviewServiceConfig
impl !RefUnwindSafe for PreviewServiceConfig
impl Send for PreviewServiceConfig
impl Sync for PreviewServiceConfig
impl Unpin for PreviewServiceConfig
impl !UnwindSafe for PreviewServiceConfig
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