pub struct ProtocolAttachment {
pub protocol_id: String,
pub payload: Vec<u8>,
}Expand description
Opaque protocol binding stored on contract and entity IR nodes.
The payload bytes encode exactly one arm of a protocol-specific top-level
oneof (for example HttpPayload or GrpcPayload).
Fields§
§protocol_id: StringStable protocol slug (for example "http", "grpc").
payload: Vec<u8>Encoded protocol-specific payload message.
Trait Implementations§
Source§impl Clone for ProtocolAttachment
impl Clone for ProtocolAttachment
Source§fn clone(&self) -> ProtocolAttachment
fn clone(&self) -> ProtocolAttachment
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 ProtocolAttachment
impl Debug for ProtocolAttachment
Source§impl Default for ProtocolAttachment
impl Default for ProtocolAttachment
Source§fn default() -> ProtocolAttachment
fn default() -> ProtocolAttachment
Returns the “default value” for a type. Read more
impl Eq for ProtocolAttachment
Source§impl PartialEq for ProtocolAttachment
impl PartialEq for ProtocolAttachment
Source§fn eq(&self, other: &ProtocolAttachment) -> bool
fn eq(&self, other: &ProtocolAttachment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProtocolAttachment
Auto Trait Implementations§
impl Freeze for ProtocolAttachment
impl RefUnwindSafe for ProtocolAttachment
impl Send for ProtocolAttachment
impl Sync for ProtocolAttachment
impl Unpin for ProtocolAttachment
impl UnsafeUnpin for ProtocolAttachment
impl UnwindSafe for ProtocolAttachment
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