#[non_exhaustive]pub struct ResponseOutputMessage {
pub agent: Option<Option<Agent>>,
pub id: String,
pub content: Vec<OutputContent>,
pub role: OutputMessageRole,
pub status: OutputMessageStatus,
pub phase: Option<Option<MessagePhase>>,
pub type_: MessageType,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.agent: Option<Option<Agent>>§id: String§content: Vec<OutputContent>§role: OutputMessageRole§status: OutputMessageStatus§phase: Option<Option<MessagePhase>>§type_: MessageType§rest: RestImplementations§
Source§impl ResponseOutputMessage
impl ResponseOutputMessage
Sourcepub fn builder(
id: String,
content: Vec<OutputContent>,
role: OutputMessageRole,
status: OutputMessageStatus,
type_: MessageType,
) -> ResponseOutputMessageBuilder
pub fn builder( id: String, content: Vec<OutputContent>, role: OutputMessageRole, status: OutputMessageStatus, type_: MessageType, ) -> ResponseOutputMessageBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for ResponseOutputMessage
impl Clone for ResponseOutputMessage
Source§impl Debug for ResponseOutputMessage
impl Debug for ResponseOutputMessage
Source§impl DeclaredFields for ResponseOutputMessage
impl DeclaredFields for ResponseOutputMessage
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for ResponseOutputMessage
impl<'de> Deserialize<'de> for ResponseOutputMessage
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 ResponseOutputMessage
Source§impl PartialEq for ResponseOutputMessage
impl PartialEq for ResponseOutputMessage
Source§impl Serialize for ResponseOutputMessage
impl Serialize for ResponseOutputMessage
impl StructuralPartialEq for ResponseOutputMessage
Auto Trait Implementations§
impl Freeze for ResponseOutputMessage
impl RefUnwindSafe for ResponseOutputMessage
impl Send for ResponseOutputMessage
impl Sync for ResponseOutputMessage
impl Unpin for ResponseOutputMessage
impl UnsafeUnpin for ResponseOutputMessage
impl UnwindSafe for ResponseOutputMessage
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