pub struct GenerationOutput {
pub output: Output,
pub request_id: Option<String>,
pub usage: Option<Usage>,
}
Fields§
§output: Output
调用结果信息。
request_id: Option<String>
本次调用的唯一标识符。
usage: Option<Usage>
本次chat请求使用的token信息。
Trait Implementations§
Source§impl Clone for GenerationOutput
impl Clone for GenerationOutput
Source§fn clone(&self) -> GenerationOutput
fn clone(&self) -> GenerationOutput
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 GenerationOutput
impl Debug for GenerationOutput
Source§impl<'de> Deserialize<'de> for GenerationOutput
impl<'de> Deserialize<'de> for GenerationOutput
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
Auto Trait Implementations§
impl Freeze for GenerationOutput
impl RefUnwindSafe for GenerationOutput
impl Send for GenerationOutput
impl Sync for GenerationOutput
impl Unpin for GenerationOutput
impl UnwindSafe for GenerationOutput
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