pub struct StreamStop {
pub stop_reason: Option<StopReason>,
pub stop_sequence: Option<StopSequence>,
}
Expand description
The stream stop information.
Fields§
§stop_reason: Option<StopReason>
The stop reason of this stream.
stop_sequence: Option<StopSequence>
The stop sequence of this stream.
Trait Implementations§
Source§impl Clone for StreamStop
impl Clone for StreamStop
Source§fn clone(&self) -> StreamStop
fn clone(&self) -> StreamStop
Returns a copy of the value. Read more
1.0.0 · 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 StreamStop
impl Debug for StreamStop
Source§impl Default for StreamStop
impl Default for StreamStop
Source§fn default() -> StreamStop
fn default() -> StreamStop
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreamStop
impl<'de> Deserialize<'de> for StreamStop
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 Display for StreamStop
impl Display for StreamStop
Source§impl PartialEq for StreamStop
impl PartialEq for StreamStop
Source§impl Serialize for StreamStop
impl Serialize for StreamStop
impl StructuralPartialEq for StreamStop
Auto Trait Implementations§
impl Freeze for StreamStop
impl RefUnwindSafe for StreamStop
impl Send for StreamStop
impl Sync for StreamStop
impl Unpin for StreamStop
impl UnwindSafe for StreamStop
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