pub struct MessageBubbleProps {
pub role: Option<MessageRole>,
pub content: String,
pub assistant_name: Option<String>,
}Fields§
§role: Option<MessageRole>§content: String§assistant_name: Option<String>Custom name to display for assistant messages (falls back to “Assistant”).
Trait Implementations§
Source§impl Default for MessageBubbleProps
impl Default for MessageBubbleProps
Source§fn default() -> MessageBubbleProps
fn default() -> MessageBubbleProps
Returns the “default value” for a type. Read more
impl Props for MessageBubbleProps
Auto Trait Implementations§
impl Freeze for MessageBubbleProps
impl RefUnwindSafe for MessageBubbleProps
impl Send for MessageBubbleProps
impl Sync for MessageBubbleProps
impl Unpin for MessageBubbleProps
impl UnsafeUnpin for MessageBubbleProps
impl UnwindSafe for MessageBubbleProps
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