Struct clust::messages::ContentBlockStartChunk
source · pub struct ContentBlockStartChunk {
pub _type: StreamChunkType,
pub index: u32,
pub content_block: TextContentBlock,
}Expand description
The content block start chunk.
Fields§
§_type: StreamChunkTypeThe type of stream chunk.
index: u32The index.
content_block: TextContentBlockThe text content block of start.
Implementations§
source§impl ContentBlockStartChunk
impl ContentBlockStartChunk
sourcepub fn new(index: u32, content_block: TextContentBlock) -> Self
pub fn new(index: u32, content_block: TextContentBlock) -> Self
Creates a new ContentBlockStart instance.
Trait Implementations§
source§impl Clone for ContentBlockStartChunk
impl Clone for ContentBlockStartChunk
source§fn clone(&self) -> ContentBlockStartChunk
fn clone(&self) -> ContentBlockStartChunk
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 ContentBlockStartChunk
impl Debug for ContentBlockStartChunk
source§impl Default for ContentBlockStartChunk
impl Default for ContentBlockStartChunk
source§impl<'de> Deserialize<'de> for ContentBlockStartChunk
impl<'de> Deserialize<'de> for ContentBlockStartChunk
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 ContentBlockStartChunk
impl Display for ContentBlockStartChunk
source§impl PartialEq for ContentBlockStartChunk
impl PartialEq for ContentBlockStartChunk
source§fn eq(&self, other: &ContentBlockStartChunk) -> bool
fn eq(&self, other: &ContentBlockStartChunk) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ContentBlockStartChunk
impl Serialize for ContentBlockStartChunk
impl StructuralPartialEq for ContentBlockStartChunk
Auto Trait Implementations§
impl Freeze for ContentBlockStartChunk
impl RefUnwindSafe for ContentBlockStartChunk
impl Send for ContentBlockStartChunk
impl Sync for ContentBlockStartChunk
impl Unpin for ContentBlockStartChunk
impl UnwindSafe for ContentBlockStartChunk
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