pub struct ItemMetadata {
pub activity: Option<f64>,
pub days_since_update: Option<f64>,
}Expand description
Metadata for priority-aware value scoring.
Passed to assign_priority_values alongside the tree.
All fields are optional — missing fields fall back to position-based scoring.
Fields§
§activity: Option<f64>Number of comments/reactions (activity signal).
days_since_update: Option<f64>Days since last update (recency signal — lower = more recent = higher value).
Trait Implementations§
Source§impl Clone for ItemMetadata
impl Clone for ItemMetadata
Source§fn clone(&self) -> ItemMetadata
fn clone(&self) -> ItemMetadata
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 ItemMetadata
impl Debug for ItemMetadata
Source§impl Default for ItemMetadata
impl Default for ItemMetadata
Source§fn default() -> ItemMetadata
fn default() -> ItemMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ItemMetadata
impl RefUnwindSafe for ItemMetadata
impl Send for ItemMetadata
impl Sync for ItemMetadata
impl Unpin for ItemMetadata
impl UnsafeUnpin for ItemMetadata
impl UnwindSafe for ItemMetadata
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