pub struct FeedItem {Show 23 fields
pub item_id: String,
pub kind: i32,
pub priority_score: u32,
pub headline: String,
pub detail: String,
pub repo_path: Option<RepositoryRef>,
pub resource_id: String,
pub resolution: i32,
pub confidence: f32,
pub actions: Vec<FeedItemAction>,
pub created_at: Option<Timestamp>,
pub expires_at: Option<Timestamp>,
pub actor_subject: String,
pub has_agent_reasoning: bool,
pub files_changed: u32,
pub breaking_changes: u32,
pub breaking_changes_computation_status: i32,
pub top_annotation: String,
pub confidence_computed: bool,
pub security_sensitive: bool,
pub affinity_multiplier: f32,
pub top_files: Vec<FileChangeSummary>,
pub breaking_summaries: Vec<BreakingChangeSummary>,
}Fields§
§item_id: String§kind: i32§priority_score: u320-1000, server-computed
headline: String“objects: 3 files changed, 2 breaking API changes”
detail: Stringtruncated diff summary, pre-populated by materializer
repo_path: Option<RepositoryRef>§resource_id: Stringstate_id, session_id, etc.
resolution: i32§confidence: f320.0-1.0, for future auto-resolution
actions: Vec<FeedItemAction>§created_at: Option<Timestamp>§expires_at: Option<Timestamp>§actor_subject: StringPopulated by FeedMaterializer in V1 (used in priority scoring and card metadata):
who/what caused this item
has_agent_reasoning: boolcontext annotations attached? (+25 priority boost)
files_changed: u32count from diff (feeds card metadata line)
breaking_changes: u32count from semantic diff (+200 priority boost)
breaking_changes_computation_status: i32pending, successfully computed, or unavailable
top_annotation: Stringmost important WHY/GOTCHA annotation text (max 80 chars)
confidence_computed: boolfalse in V1; true in V2 when confidence is set
security_sensitive: boolstored for score reproducibility
affinity_multiplier: f32stored for score reproducibility (default 1.0)
top_files: Vec<FileChangeSummary>top changed file paths (max 5)
breaking_summaries: Vec<BreakingChangeSummary>top breaking semantic changes (max 3)
Implementations§
Source§impl FeedItem
impl FeedItem
Sourcepub fn kind(&self) -> FeedItemKind
pub fn kind(&self) -> FeedItemKind
Returns the enum value of kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_kind(&mut self, value: FeedItemKind)
pub fn set_kind(&mut self, value: FeedItemKind)
Sets kind to the provided enum value.
Sourcepub fn resolution(&self) -> FeedItemResolution
pub fn resolution(&self) -> FeedItemResolution
Returns the enum value of resolution, or the default if the field is set to an invalid enum value.
Sourcepub fn set_resolution(&mut self, value: FeedItemResolution)
pub fn set_resolution(&mut self, value: FeedItemResolution)
Sets resolution to the provided enum value.
Sourcepub fn breaking_changes_computation_status(
&self,
) -> BreakingChangesComputationStatus
pub fn breaking_changes_computation_status( &self, ) -> BreakingChangesComputationStatus
Returns the enum value of breaking_changes_computation_status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_breaking_changes_computation_status(
&mut self,
value: BreakingChangesComputationStatus,
)
pub fn set_breaking_changes_computation_status( &mut self, value: BreakingChangesComputationStatus, )
Sets breaking_changes_computation_status to the provided enum value.
Trait Implementations§
Source§impl Message for FeedItem
impl Message for FeedItem
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.