pub struct PeerInput {
pub header: InputHeader,
pub convention: Option<PeerConvention>,
pub body: String,
pub blocks: Option<Vec<ContentBlock>>,
}Expand description
Peer-originated input from comms.
Fields§
§header: InputHeader§convention: Option<PeerConvention>The peer convention (message, request, response).
body: StringMessage body.
blocks: Option<Vec<ContentBlock>>Optional multimodal content blocks. When present, body serves as the
text projection (backwards compat), and blocks carries the full content.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PeerInput
impl<'de> Deserialize<'de> for PeerInput
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 PeerInput
impl RefUnwindSafe for PeerInput
impl Send for PeerInput
impl Sync for PeerInput
impl Unpin for PeerInput
impl UnsafeUnpin for PeerInput
impl UnwindSafe for PeerInput
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