#[non_exhaustive]pub struct CopilotHttpResponse {
pub status: u16,
pub status_text: Option<String>,
pub headers: HeaderMap,
pub body: CopilotHttpResponseBody,
}Expand description
A streaming HTTP response returned by CopilotRequestHandler::send_request.
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.
status_text: Option<String>Optional status reason phrase.
headers: HeaderMapResponse headers.
body: CopilotHttpResponseBodyStreaming response body.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CopilotHttpResponse
impl !Sync for CopilotHttpResponse
impl !UnwindSafe for CopilotHttpResponse
impl Freeze for CopilotHttpResponse
impl Send for CopilotHttpResponse
impl Unpin for CopilotHttpResponse
impl UnsafeUnpin for CopilotHttpResponse
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