MessageList builder
A conversation.
A builder is RenderOnce. Construct and mount it in one expression.
use gpui_kit::content::MessageList;
Construct
new(ident: impl Into<Ident>, messages: impl IntoIterator<Item = Message>) -> SelfOptions
Chain onto the value.
visible_rows(rows: usize) -> Self
body_lines(lines: usize) -> Self
group_consecutive(group: bool) -> Self
on_retry(handler: impl Fn(SharedString, &mut Window, &mut App) + 'static) -> Self
on_markdown(handler: impl Fn(SharedString, &MarkdownEvent, &mut Window, &mut App) + 'static) -> SelfRendered by
Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.