pub struct ResponseChunk {
pub node_id: Arc<str>,
pub text: String,
pub is_final: bool,
}Expand description
A piece of ordered response text.
Fields§
§node_id: Arc<str>Response node the text belongs to (or, for passed-through chunks, the node that produced them). Shared with the graph, so a chunk does not copy it.
text: String§is_final: booltrue exactly once per response node, on an empty chunk marking that
its template is fully rendered.
Trait Implementations§
Source§impl Clone for ResponseChunk
impl Clone for ResponseChunk
Source§impl Debug for ResponseChunk
impl Debug for ResponseChunk
impl Eq for ResponseChunk
Source§impl PartialEq for ResponseChunk
impl PartialEq for ResponseChunk
impl StructuralPartialEq for ResponseChunk
Auto Trait Implementations§
impl Forget for ResponseChunk
impl Freeze for ResponseChunk
impl Move for ResponseChunk
impl RefUnwindSafe for ResponseChunk
impl Send for ResponseChunk
impl Sync for ResponseChunk
impl Unpin for ResponseChunk
impl UnsafeUnpin for ResponseChunk
impl UnwindSafe for ResponseChunk
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.