pub enum HarnessMcpContentTypeV1 {
HarnessReadRequestJsonV1,
HarnessReadResponseJsonV1,
}Expand description
Names what shape an opaque harness-MCP payload’s body holds.
Neither node nor c2 ever inspect body – see HarnessMcpOpaquePayloadV1
– so this tag exists only so the two real endpoints (the reviewed local
helper program, which originates a request and decodes a reply; the
harness, which decodes a request and originates a reply) can tell a
version-skewed or misdirected payload from a well-formed one, without the
carrier needing to know either shape.
Variants§
Trait Implementations§
Source§impl Clone for HarnessMcpContentTypeV1
impl Clone for HarnessMcpContentTypeV1
Source§fn clone(&self) -> HarnessMcpContentTypeV1
fn clone(&self) -> HarnessMcpContentTypeV1
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 moreimpl Copy for HarnessMcpContentTypeV1
Source§impl Debug for HarnessMcpContentTypeV1
impl Debug for HarnessMcpContentTypeV1
Source§impl<'de> Deserialize<'de> for HarnessMcpContentTypeV1
impl<'de> Deserialize<'de> for HarnessMcpContentTypeV1
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HarnessMcpContentTypeV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HarnessMcpContentTypeV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HarnessMcpContentTypeV1
Source§impl PartialEq for HarnessMcpContentTypeV1
impl PartialEq for HarnessMcpContentTypeV1
Source§impl Serialize for HarnessMcpContentTypeV1
impl Serialize for HarnessMcpContentTypeV1
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for HarnessMcpContentTypeV1
Auto Trait Implementations§
impl Freeze for HarnessMcpContentTypeV1
impl RefUnwindSafe for HarnessMcpContentTypeV1
impl Send for HarnessMcpContentTypeV1
impl Sync for HarnessMcpContentTypeV1
impl Unpin for HarnessMcpContentTypeV1
impl UnsafeUnpin for HarnessMcpContentTypeV1
impl UnwindSafe for HarnessMcpContentTypeV1
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