Skip to main content

format_inline_list_overflow

Function format_inline_list_overflow 

Source
pub fn format_inline_list_overflow<T: Display>(
    items: &[T],
    field: &str,
) -> String
Expand description

Render a structured-list payload onto the text-mirror message. The first INLINE_LIST_CAP items appear inline, comma-separated; when the list is longer, the suffix “ +N more — see details.“ points the agent at the structured channel’s typed list under field. Empty input renders as an empty string. The function is generic over any fmt::Display item — wrap structs in a small Display newtype if their default rendering is too verbose for the text channel.