Skip to main content

PagesiftMeta

Struct PagesiftMeta 

Source
pub struct PagesiftMeta {
Show 20 fields pub content_hash: Option<String>, pub raw_hash: Option<String>, pub text_hash: Option<String>, pub redirect_chain: Vec<String>, pub etag: Option<String>, pub last_modified: Option<String>, pub not_modified: bool, pub engine: Option<String>, pub browser_engine: Option<String>, pub browser_fingerprint: Option<String>, pub itna: Option<Value>, pub warnings: Vec<String>, pub timings: BTreeMap<String, f64>, pub ocr: Option<OcrMeta>, pub duplicate_of: Option<String>, pub relevance: Option<f32>, pub crawl: Option<CrawlTrace>, pub query_filter: Option<QueryFilterStats>, pub json_ld: Vec<Value>, pub plan: Option<PlanTrace>,
}

Fields§

§content_hash: Option<String>§raw_hash: Option<String>§text_hash: Option<String>§redirect_chain: Vec<String>§etag: Option<String>§last_modified: Option<String>§not_modified: bool§engine: Option<String>

http or browser.

§browser_engine: Option<String>

lightpanda, moli, or chrome.

§browser_fingerprint: Option<String>

这次 HTTP 抓取确实按这个档案发(如 chrome_156):站点看到的是这个浏览器,不是 pagesift。

§itna: Option<Value>

Access-barrier recovery attempts, when itna is enabled.

§warnings: Vec<String>§timings: BTreeMap<String, f64>

Timing per phase in milliseconds.

§ocr: Option<OcrMeta>

OCR:哪个引擎和设备识别了多少页。

§duplicate_of: Option<String>

Duplicate canonical reference URL.

§relevance: Option<f32>

Query relevance score (0.0 to 1.0).

§crawl: Option<CrawlTrace>

带查询的爬取里这一页是怎么来的:深度、父页、入队分数、附件的来源页。

§query_filter: Option<QueryFilterStats>

Query filter statistics.

§json_ld: Vec<Value>

JSON-LD blocks found on the page, parsed and passed through unchanged.

§plan: Option<PlanTrace>

How the result was produced: one entry per decision (render or not, merge or not) with its inputs. Only present when the request asks for an explanation.

Trait Implementations§

Source§

impl Clone for PagesiftMeta

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PagesiftMeta

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PagesiftMeta

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for PagesiftMeta

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for PagesiftMeta

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for PagesiftMeta

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for PagesiftMeta

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more