pub struct TextUIPart {
pub text: String,
pub state: Option<StreamState>,
pub provider_metadata: Option<Value>,
/* private fields */
}Expand description
Text part.
Fields§
§text: StringThe text content.
state: Option<StreamState>Optional streaming state.
provider_metadata: Option<Value>Optional provider metadata.
Implementations§
Source§impl TextUIPart
impl TextUIPart
Trait Implementations§
Source§impl Clone for TextUIPart
impl Clone for TextUIPart
Source§fn clone(&self) -> TextUIPart
fn clone(&self) -> TextUIPart
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 TextUIPart
impl Debug for TextUIPart
Source§impl<'de> Deserialize<'de> for TextUIPart
impl<'de> Deserialize<'de> for TextUIPart
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 TextUIPart
impl PartialEq for TextUIPart
Source§impl Serialize for TextUIPart
impl Serialize for TextUIPart
impl StructuralPartialEq for TextUIPart
Auto Trait Implementations§
impl Freeze for TextUIPart
impl RefUnwindSafe for TextUIPart
impl Send for TextUIPart
impl Sync for TextUIPart
impl Unpin for TextUIPart
impl UnwindSafe for TextUIPart
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