pub struct ListStateAttachmentsRequest {
pub repo_path: Option<RepositoryRef>,
pub state_id: Option<StateId>,
pub kinds: Vec<i32>,
}Expand description
Hosted unary read of a state’s attachments by state_id. Complements the
push/pull StateAttachmentTransfer path in repo_sync.proto (native-pack
object channel) with a simple fetch for clients that already hold a
state_id — e.g. tapestry’s ConflictCard loading
STATE_ATTACHMENT_KIND_STRUCTURED_CONFLICTS.
CollaborationService / HeddleCo/heddle#1333 hold the dual-target question:
conflicts are produced locally by heddle resolve but are PUSHED to weft
as attachments, so this hosted read path serves pushed/hosted data (a
legitimate weft surface). A daemon equivalent for local-only states rides
#1333. Do not add the daemon path here.
When the structured-conflicts attachment is returned, the body includes
both open AND resolved conflicts. StructuredConflict.status distinguishes
them; clients filter. The server must not prune resolved conflicts — the
audit story of how a collision was settled (the reason ConflictCard
exists) depends on them remaining in the body.
Fields§
§repo_path: Option<RepositoryRef>§state_id: Option<StateId>§kinds: Vec<i32>Empty = every kind. When set, return ONLY the listed kinds so a review page wanting conflicts does not receive (and discard) a semantic index or signature blob that shares the attachment slot.
Implementations§
Source§impl ListStateAttachmentsRequest
impl ListStateAttachmentsRequest
Sourcepub fn kinds(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<StateAttachmentKind>> ⓘ
pub fn kinds( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<StateAttachmentKind>> ⓘ
Returns an iterator which yields the valid enum values contained in kinds.
Sourcepub fn push_kinds(&mut self, value: StateAttachmentKind)
pub fn push_kinds(&mut self, value: StateAttachmentKind)
Appends the provided enum value to kinds.
Trait Implementations§
Source§impl Clone for ListStateAttachmentsRequest
impl Clone for ListStateAttachmentsRequest
Source§fn clone(&self) -> ListStateAttachmentsRequest
fn clone(&self) -> ListStateAttachmentsRequest
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 ListStateAttachmentsRequest
impl Debug for ListStateAttachmentsRequest
impl Eq for ListStateAttachmentsRequest
Source§impl Hash for ListStateAttachmentsRequest
impl Hash for ListStateAttachmentsRequest
Source§impl Message for ListStateAttachmentsRequest
impl Message for ListStateAttachmentsRequest
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.