pub struct Meta {Show 18 fields
pub url: String,
pub final_url: Option<String>,
pub landed: Option<String>,
pub refreshed_from: Option<String>,
pub provider: String,
pub ms: u64,
pub cost: f64,
pub ok: bool,
pub code: String,
pub t: f64,
pub bytes: u64,
pub kind: String,
pub hops: Vec<HopRow>,
pub render: Option<bool>,
pub country: String,
pub charset: String,
pub hedge: String,
pub extra: Map<String, Value>,
}Fields§
§url: String§final_url: Option<String>§landed: Option<String>Where a bd ask landed by the page’s same-site canonical link (fetch::canonical): outline::lost_page
judges it; the links’ base stays final_url.
refreshed_from: Option<String>The page whose meta refresh plain followed (provider::refresh): the outline’s uN#0 info | refreshed from: <url> row, never judged; lost_page judges the target (final_url) as any landing.
provider: String§ms: u64§cost: f64§ok: bool§code: String§t: f64§bytes: u64§kind: String§hops: Vec<HopRow>§render: Option<bool>The body is a browser render (its <noscript> was never shown, so the cleaner drops it). Set by
whoever stored the body.
country: StringThe exit country the serving provider was asked for (FR); empty = none.
charset: StringThe encoding the body was decoded from before it was stored as UTF-8 (windows-1250); empty = UTF-8.
hedge: Stringoff = a paid ask, one provider at a time (fetch::Plan::hedged), said on every read; empty = hedged.
extra: Map<String, Value>Keys this build does not know survive a rewrite.
Implementations§
Source§impl Meta
impl Meta
Sourcepub fn geo(&self) -> String
pub fn geo(&self) -> String
The tier path (plain:js_shell✗ oxy✓ bd:abandoned✗$0.0015, a code only on failures, the bill of a
cancelled call, why a served call was asked again: plain✓md:thin, fetch::md_weak), the one format every
view prints.
·fr beside the serving tier when its exit country is not the default one (oxyjs·fr), else empty.
pub fn tried(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Meta
impl<'de> Deserialize<'de> for Meta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Meta
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnsafeUnpin for Meta
impl UnwindSafe for Meta
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.