pub struct ChatResponse { /* private fields */ }
Implementations§
source§impl Response
impl Response
pub fn dummy(s: String) -> Self
pub fn from_str(s: &str, api_provider: ApiProvider) -> Result<Self, Error>
pub fn get_output_token_count(&self) -> usize
pub fn get_prompt_token_count(&self) -> usize
pub fn get_total_token_count(&self) -> usize
pub fn get_message(&self, index: usize) -> Option<&str>
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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