#[non_exhaustive]pub struct EdgeResponse {
pub status: u16,
pub headers: HashMap<String, String>,
pub body: Vec<u8>,
}Expand description
Environment-agnostic HTTP response payload designed for maximum compatibility.
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 (e.g., 200, 404).
headers: HashMap<String, String>Collection of response headers.
body: Vec<u8>Raw response body in bytes.
Implementations§
Trait Implementations§
Source§impl Clone for EdgeResponse
impl Clone for EdgeResponse
Auto Trait Implementations§
impl Freeze for EdgeResponse
impl RefUnwindSafe for EdgeResponse
impl Send for EdgeResponse
impl Sync for EdgeResponse
impl Unpin for EdgeResponse
impl UnsafeUnpin for EdgeResponse
impl UnwindSafe for EdgeResponse
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