pub struct FetchedResponse {
pub url: String,
pub status: u16,
pub status_text: String,
pub kind: String,
pub redirected: bool,
pub headers: BTreeMap<String, String>,
pub body: String,
pub truncated: bool,
pub bytes_read: usize,
pub body_omitted: Option<String>,
}Fields§
§url: String§status: u16§status_text: String§kind: String§redirected: bool§headers: BTreeMap<String, String>§body: String§truncated: bool§bytes_read: usize§body_omitted: Option<String>Trait Implementations§
Source§impl Clone for FetchedResponse
impl Clone for FetchedResponse
Source§impl Debug for FetchedResponse
impl Debug for FetchedResponse
Source§impl<'de> Deserialize<'de> for FetchedResponse
impl<'de> Deserialize<'de> for FetchedResponse
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BoundedFetchResponse> for FetchedResponse
impl From<BoundedFetchResponse> for FetchedResponse
Source§fn from(response: BoundedFetchResponse) -> Self
fn from(response: BoundedFetchResponse) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for FetchedResponse
impl JsonSchema for FetchedResponse
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for FetchedResponse
impl Freeze for FetchedResponse
impl Move for FetchedResponse
impl RefUnwindSafe for FetchedResponse
impl Send for FetchedResponse
impl Sync for FetchedResponse
impl Unpin for FetchedResponse
impl UnsafeUnpin for FetchedResponsewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
impl UnwindSafe for FetchedResponse
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