pub struct PromptOutputMessage {
pub role: PromptRole,
pub content: String,
}Expand description
A rendered message inside a prompt output.
Fields§
§role: PromptRoleMessage role.
content: StringText content.
Implementations§
Trait Implementations§
Source§impl Clone for PromptOutputMessage
impl Clone for PromptOutputMessage
Source§fn clone(&self) -> PromptOutputMessage
fn clone(&self) -> PromptOutputMessage
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 PromptOutputMessage
impl Debug for PromptOutputMessage
Source§impl<'de> Deserialize<'de> for PromptOutputMessage
impl<'de> Deserialize<'de> for PromptOutputMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PromptOutputMessage
Source§impl PartialEq for PromptOutputMessage
impl PartialEq for PromptOutputMessage
Source§impl Serialize for PromptOutputMessage
impl Serialize for PromptOutputMessage
impl StructuralPartialEq for PromptOutputMessage
Auto Trait Implementations§
impl Freeze for PromptOutputMessage
impl RefUnwindSafe for PromptOutputMessage
impl Send for PromptOutputMessage
impl Sync for PromptOutputMessage
impl Unpin for PromptOutputMessage
impl UnsafeUnpin for PromptOutputMessage
impl UnwindSafe for PromptOutputMessage
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