pub struct ThinkChunk {
pub type: Option<Type>,
pub thinking: Vec<ThinkingInner>,
pub closed: Option<bool>,
}Fields§
§type: Option<Type>§thinking: Vec<ThinkingInner>§closed: Option<bool>Whether the thinking chunk is closed or not. Currently only used for prefixing.
Implementations§
Source§impl ThinkChunk
impl ThinkChunk
pub fn new(thinking: Vec<ThinkingInner>) -> ThinkChunk
Trait Implementations§
Source§impl Clone for ThinkChunk
impl Clone for ThinkChunk
Source§fn clone(&self) -> ThinkChunk
fn clone(&self) -> ThinkChunk
Returns a duplicate 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 ThinkChunk
impl Debug for ThinkChunk
Source§impl Default for ThinkChunk
impl Default for ThinkChunk
Source§fn default() -> ThinkChunk
fn default() -> ThinkChunk
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThinkChunk
impl<'de> Deserialize<'de> for ThinkChunk
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 ThinkChunk
impl PartialEq for ThinkChunk
Source§impl Serialize for ThinkChunk
impl Serialize for ThinkChunk
impl StructuralPartialEq for ThinkChunk
Auto Trait Implementations§
impl Freeze for ThinkChunk
impl RefUnwindSafe for ThinkChunk
impl Send for ThinkChunk
impl Sync for ThinkChunk
impl Unpin for ThinkChunk
impl UnsafeUnpin for ThinkChunk
impl UnwindSafe for ThinkChunk
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