pub struct OutputTextContent {
pub text: String,
pub annotations: Vec<Annotation>,
pub logprobs: Option<Vec<LogProb>>,
}
Expand description
A text output from the model.
Fields§
§text: String
The text output from the model.
annotations: Vec<Annotation>
The annotations of the text output.
logprobs: Option<Vec<LogProb>>
Implementations§
Trait Implementations§
Source§impl Clone for OutputTextContent
impl Clone for OutputTextContent
Source§fn clone(&self) -> OutputTextContent
fn clone(&self) -> OutputTextContent
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 OutputTextContent
impl Debug for OutputTextContent
Source§impl<'de> Deserialize<'de> for OutputTextContent
impl<'de> Deserialize<'de> for OutputTextContent
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 OutputTextContent
impl PartialEq for OutputTextContent
Source§impl Serialize for OutputTextContent
impl Serialize for OutputTextContent
impl StructuralPartialEq for OutputTextContent
Auto Trait Implementations§
impl Freeze for OutputTextContent
impl RefUnwindSafe for OutputTextContent
impl Send for OutputTextContent
impl Sync for OutputTextContent
impl Unpin for OutputTextContent
impl UnwindSafe for OutputTextContent
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