pub struct McpOauthHttpResponse {
pub body: Option<String>,
pub headers: Vec<HeaderEntry>,
pub status_code: i32,
}Expand description
Raw HTTP response details from the OAuth auth challenge, as observed by the runtime.
Fields§
§body: Option<String>Complete UTF-8 response body for host-specific challenge handling, including an empty string for an empty body. Omitted when the complete body is not valid UTF-8; body read failures fail the HTTP operation rather than exposing a partial response.
headers: Vec<HeaderEntry>HTTP response headers as observed by the runtime. Order and casing are transport-dependent, and duplicate header names may appear multiple times.
status_code: i32HTTP status code returned with the auth challenge.
Trait Implementations§
Source§impl Clone for McpOauthHttpResponse
impl Clone for McpOauthHttpResponse
Source§fn clone(&self) -> McpOauthHttpResponse
fn clone(&self) -> McpOauthHttpResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for McpOauthHttpResponse
impl Debug for McpOauthHttpResponse
Source§impl Default for McpOauthHttpResponse
impl Default for McpOauthHttpResponse
Source§fn default() -> McpOauthHttpResponse
fn default() -> McpOauthHttpResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpOauthHttpResponse
impl<'de> Deserialize<'de> for McpOauthHttpResponse
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
Auto Trait Implementations§
impl Freeze for McpOauthHttpResponse
impl RefUnwindSafe for McpOauthHttpResponse
impl Send for McpOauthHttpResponse
impl Sync for McpOauthHttpResponse
impl Unpin for McpOauthHttpResponse
impl UnsafeUnpin for McpOauthHttpResponse
impl UnwindSafe for McpOauthHttpResponse
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