pub struct ClientObjectiveaiMcpHeaders {
pub root: bool,
pub tools: Vec<ClientObjectiveaiMcpEntry>,
pub plugins: Vec<ClientObjectiveaiMcpEntry>,
}Expand description
Snapshot of the three transient X-OBJECTIVEAI-MCP-* request
headers an HTTP caller stamps on its initial dial of the
objectiveai-mcp proxy upstream.
Produced by ClientObjectiveaiMcp::mcp_headers — see that
method’s doc for the per-field source rules and sort order.
Fields§
§root: boolBecomes the X-OBJECTIVEAI-MCP-ROOT header value verbatim
("true" / "false").
tools: Vec<ClientObjectiveaiMcpEntry>Tools the agent expects the client to expose, sorted by
(owner, name, version). Becomes the
X-OBJECTIVEAI-MCP-TOOLS header’s JSON payload.
plugins: Vec<ClientObjectiveaiMcpEntry>Plugins the agent expects the client to expose, filtered to
executable: true entries only, projected onto the
(owner, name, version) shape, and sorted by
(owner, name, version). Becomes the
X-OBJECTIVEAI-MCP-PLUGINS header’s JSON payload.
Implementations§
Source§impl ClientObjectiveaiMcpHeaders
impl ClientObjectiveaiMcpHeaders
Sourcepub fn to_headers(&self) -> Vec<(String, String)>
pub fn to_headers(&self) -> Vec<(String, String)>
Project the three fields onto the canonical
(header-name, header-value) pairs an HTTP caller can stamp
directly. Headers are emitted in the order
ROOT → TOOLS → PLUGINS; callers that need a map can collect
the returned vec themselves.
Trait Implementations§
Source§impl Clone for ClientObjectiveaiMcpHeaders
impl Clone for ClientObjectiveaiMcpHeaders
Source§fn clone(&self) -> ClientObjectiveaiMcpHeaders
fn clone(&self) -> ClientObjectiveaiMcpHeaders
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClientObjectiveaiMcpHeaders
impl Debug for ClientObjectiveaiMcpHeaders
Source§impl<'de> Deserialize<'de> for ClientObjectiveaiMcpHeaders
impl<'de> Deserialize<'de> for ClientObjectiveaiMcpHeaders
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>,
impl Eq for ClientObjectiveaiMcpHeaders
Source§impl JsonSchema for ClientObjectiveaiMcpHeaders
impl JsonSchema for ClientObjectiveaiMcpHeaders
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for ClientObjectiveaiMcpHeaders
Auto Trait Implementations§
impl Freeze for ClientObjectiveaiMcpHeaders
impl RefUnwindSafe for ClientObjectiveaiMcpHeaders
impl Send for ClientObjectiveaiMcpHeaders
impl Sync for ClientObjectiveaiMcpHeaders
impl Unpin for ClientObjectiveaiMcpHeaders
impl UnsafeUnpin for ClientObjectiveaiMcpHeaders
impl UnwindSafe for ClientObjectiveaiMcpHeaders
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more