#[non_exhaustive]pub struct ResolvedPdf {
pub url: String,
pub source: String,
pub downloadable: bool,
}Expand description
Result of PDF URL resolution.
Contains the URL, the source that found it, and whether the URL points to a directly downloadable file (vs. a paywall landing page).
§Fields
url— the resolved PDF URL (may or may not be directly downloadable)source— which source found it (e.g.,"arxiv","openalex","google_scholar")downloadable—falseif the URL points to a known paywall domain
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.url: StringThe resolved PDF URL.
source: StringWhich source found this URL (e.g., "arxiv", "google_scholar").
downloadable: boolWhether the URL is directly downloadable (false for paywall domains).
Trait Implementations§
Source§impl Clone for ResolvedPdf
impl Clone for ResolvedPdf
Source§fn clone(&self) -> ResolvedPdf
fn clone(&self) -> ResolvedPdf
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedPdf
impl RefUnwindSafe for ResolvedPdf
impl Send for ResolvedPdf
impl Sync for ResolvedPdf
impl Unpin for ResolvedPdf
impl UnwindSafe for ResolvedPdf
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