pub struct StateAttachmentTransfer {
pub state_id: Option<StateId>,
pub attachment_id: String,
pub attachment_kind: i32,
pub attachment_object: Vec<u8>,
}Expand description
Out-of-pack transport for state-attachment sidecars. State attachments
(context, risk signals, review signatures, discussions, structured
conflicts, semantic index, signature) are partitioned onto the sidecar
lane and live structurally outside .heddle/objects/, so they can’t
ride the native-pack object channel. The sender emits one
StateAttachmentTransfer per pushed attachment; the receiver
reconstructs and verifies the attachment from the raw object bytes.
state_id is the hex-encoded ChangeId of the state the attachment
hangs off.
attachment_id is the hex-encoded id of the attachment object.
attachment_kind is the attachment body kind (see StateAttachmentKind).
attachment_object is the raw serialized StateAttachment object byte
payload — byte-identical to what the sender stored on disk.
Fields§
§state_id: Option<StateId>§attachment_id: String§attachment_kind: i32§attachment_object: Vec<u8>Implementations§
Source§impl StateAttachmentTransfer
impl StateAttachmentTransfer
Sourcepub fn attachment_kind(&self) -> StateAttachmentKind
pub fn attachment_kind(&self) -> StateAttachmentKind
Returns the enum value of attachment_kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_attachment_kind(&mut self, value: StateAttachmentKind)
pub fn set_attachment_kind(&mut self, value: StateAttachmentKind)
Sets attachment_kind to the provided enum value.
Trait Implementations§
Source§impl Clone for StateAttachmentTransfer
impl Clone for StateAttachmentTransfer
Source§fn clone(&self) -> StateAttachmentTransfer
fn clone(&self) -> StateAttachmentTransfer
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 StateAttachmentTransfer
impl Debug for StateAttachmentTransfer
Source§impl Default for StateAttachmentTransfer
impl Default for StateAttachmentTransfer
impl Eq for StateAttachmentTransfer
Source§impl Hash for StateAttachmentTransfer
impl Hash for StateAttachmentTransfer
Source§impl Message for StateAttachmentTransfer
impl Message for StateAttachmentTransfer
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.