#[non_exhaustive]pub struct FeedHttpResponse {
pub status: u16,
pub url: String,
pub headers: HashMap<String, String>,
pub body: Vec<u8>,
pub etag: Option<String>,
pub last_modified: Option<String>,
pub content_type: Option<String>,
}Expand description
HTTP response from feed fetch
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.status: u16HTTP status code
url: StringFinal URL after redirects
headers: HashMap<String, String>Response headers
body: Vec<u8>Response body
etag: Option<String>ETag header value
last_modified: Option<String>Last-Modified header value
content_type: Option<String>Content-Type header value
Implementations§
Trait Implementations§
Source§impl Clone for FeedHttpResponse
impl Clone for FeedHttpResponse
Auto Trait Implementations§
impl Forget for FeedHttpResponse
impl Freeze for FeedHttpResponse
impl Move for FeedHttpResponse
impl RefUnwindSafe for FeedHttpResponse
impl Send for FeedHttpResponse
impl Sync for FeedHttpResponse
impl Unpin for FeedHttpResponse
impl UnsafeUnpin for FeedHttpResponsewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for FeedHttpResponse
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