pub struct ChatResource { /* private fields */ }Expand description
EN: Chat API resource. 中文:Chat API 资源。
Implementations§
Source§impl ChatResource
impl ChatResource
Sourcepub fn completions(&self) -> ChatCompletionsResource
pub fn completions(&self) -> ChatCompletionsResource
EN: Returns the Chat Completions API resource. 中文:返回 Chat Completions API 资源。
Trait Implementations§
Source§impl Clone for ChatResource
impl Clone for ChatResource
Source§fn clone(&self) -> ChatResource
fn clone(&self) -> ChatResource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ChatResource
impl !UnwindSafe for ChatResource
impl Freeze for ChatResource
impl Send for ChatResource
impl Sync for ChatResource
impl Unpin for ChatResource
impl UnsafeUnpin for ChatResource
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