Crate url_preview

Source

Structs§

Cache
Fetcher
FetcherConfig
Creates a fetcher with Twitter-specific configurations.
LogConfig
LogLevelGuard
MetadataExtractor
Metadata extractor, responsible for extracting preview information from webpage content
Preview
PreviewService
PreviewService provides a unified preview generation service It can automatically identify different types of URLs and use appropriate processing strategies
PreviewServiceConfig
UrlPreviewGenerator

Enums§

CacheStrategy
FetchResult
PreviewError

Constants§

MAX_CONCURRENT_REQUESTS

Traits§

PreviewGenerator

Functions§

is_twitter_url
log_error_card
log_preview_card
setup_logging