pub struct FetchedDoc {
pub final_url: String,
pub content_type: String,
pub bytes: Vec<u8>,
pub status: u16,
pub truncated: bool,
}Expand description
A fetched document with its raw body bytes and resolved metadata.
The body is kept as bytes so binary payloads (e.g. PDF) survive intact;
textual callers use FetchedDoc::body_text for a lossy UTF-8 view.
Fields§
§final_url: String§content_type: StringLower-cased MIME type without parameters (e.g. text/html).
bytes: Vec<u8>§status: u16§truncated: boolImplementations§
Auto Trait Implementations§
impl Freeze for FetchedDoc
impl RefUnwindSafe for FetchedDoc
impl Send for FetchedDoc
impl Sync for FetchedDoc
impl Unpin for FetchedDoc
impl UnsafeUnpin for FetchedDoc
impl UnwindSafe for FetchedDoc
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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>
Converts
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>
Converts
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 more