pub struct MessageWithParts {
pub info: Value,
pub parts: Vec<Value>,
}Expand description
Prompt/message response shape. Message info and parts are intentionally retained losslessly until the full upstream union generator is proven.
Fields§
§info: Value§parts: Vec<Value>Trait Implementations§
Source§impl Clone for MessageWithParts
impl Clone for MessageWithParts
Source§impl Debug for MessageWithParts
impl Debug for MessageWithParts
Source§impl<'de> Deserialize<'de> for MessageWithParts
impl<'de> Deserialize<'de> for MessageWithParts
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
Source§impl PartialEq for MessageWithParts
impl PartialEq for MessageWithParts
Source§impl Serialize for MessageWithParts
impl Serialize for MessageWithParts
impl StructuralPartialEq for MessageWithParts
Auto Trait Implementations§
impl Freeze for MessageWithParts
impl RefUnwindSafe for MessageWithParts
impl Send for MessageWithParts
impl Sync for MessageWithParts
impl Unpin for MessageWithParts
impl UnsafeUnpin for MessageWithParts
impl UnwindSafe for MessageWithParts
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