pub struct UserMessage {
pub role: &'static str,
pub content: String,
}Expand description
One element of an Anthropic messages array. We only ever send
role: "user" — ask() is stateless / one-shot.
Fields§
§role: &'static str§content: StringImplementations§
Trait Implementations§
Source§impl Debug for UserMessage
impl Debug for UserMessage
Auto Trait Implementations§
impl Freeze for UserMessage
impl RefUnwindSafe for UserMessage
impl Send for UserMessage
impl Sync for UserMessage
impl Unpin for UserMessage
impl UnsafeUnpin for UserMessage
impl UnwindSafe for UserMessage
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