pub struct Generation { /* private fields */ }Implementations§
Source§impl Generation
impl Generation
pub fn new(assistant_message: AssistantMessage) -> Self
Trait Implementations§
Source§impl Clone for Generation
impl Clone for Generation
Source§fn clone(&self) -> Generation
fn clone(&self) -> Generation
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 ModelResponse<Generation, AssistantMessage> for ChatResponse
impl ModelResponse<Generation, AssistantMessage> for ChatResponse
fn result(&self) -> Option<Generation>
fn results(&self) -> impl IntoIterator<Item = Generation>
fn resp_meta_data(&self) -> impl ResponseMetadata
Source§impl ModelResult<AssistantMessage> for Generation
impl ModelResult<AssistantMessage> for Generation
fn output(&self) -> &AssistantMessage
fn meta_data(&self) -> Box<dyn ResultMetadata>
Auto Trait Implementations§
impl Freeze for Generation
impl !RefUnwindSafe for Generation
impl Send for Generation
impl Sync for Generation
impl Unpin for Generation
impl !UnwindSafe for Generation
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