pub struct MessageDeltaUpdate {
pub stop_reason: StopReason,
pub stop_sequence: Option<String>,
pub stop_details: Option<RefusalStopDetails>,
pub container: Option<Container>,
}Expand description
message_delta 事件携带的 message 顶层增量。stop_reason 在 turn 收尾时必填;stop_sequence 仅在因 stop_sequences 命中而停止时填, 其余情况上游回 null(不传字段或传 null 都视为“未命中“)。
Fields§
§stop_reason: StopReason§stop_sequence: Option<String>§stop_details: Option<RefusalStopDetails>§container: Option<Container>Trait Implementations§
Source§impl Clone for MessageDeltaUpdate
impl Clone for MessageDeltaUpdate
Source§fn clone(&self) -> MessageDeltaUpdate
fn clone(&self) -> MessageDeltaUpdate
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 MessageDeltaUpdate
impl Debug for MessageDeltaUpdate
Source§impl<'de> Deserialize<'de> for MessageDeltaUpdate
impl<'de> Deserialize<'de> for MessageDeltaUpdate
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 MessageDeltaUpdate
impl PartialEq for MessageDeltaUpdate
Source§fn eq(&self, other: &MessageDeltaUpdate) -> bool
fn eq(&self, other: &MessageDeltaUpdate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MessageDeltaUpdate
impl Serialize for MessageDeltaUpdate
impl StructuralPartialEq for MessageDeltaUpdate
Auto Trait Implementations§
impl Freeze for MessageDeltaUpdate
impl RefUnwindSafe for MessageDeltaUpdate
impl Send for MessageDeltaUpdate
impl Sync for MessageDeltaUpdate
impl Unpin for MessageDeltaUpdate
impl UnsafeUnpin for MessageDeltaUpdate
impl UnwindSafe for MessageDeltaUpdate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.