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
impl 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<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
impl Eq for HarnessMcpContentTypeV1
Source§impl PartialEq for HarnessMcpContentTypeV1
impl PartialEq for HarnessMcpContentTypeV1
Source§impl Serialize for HarnessMcpContentTypeV1
impl Serialize for HarnessMcpContentTypeV1
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