pub enum ChatCompletionObject {
ChatCompletion,
Unknown(String),
}Expand description
The object type, which is always chat.completion.
Variants§
ChatCompletion
The object type is always chat.completion.
Unknown(String)
Any other value emitted by the backend, preserved verbatim.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for ChatCompletionObject
impl AsRef<str> for ChatCompletionObject
Source§impl Clone for ChatCompletionObject
impl Clone for ChatCompletionObject
Source§impl Debug for ChatCompletionObject
impl Debug for ChatCompletionObject
Source§impl<'de> Deserialize<'de> for ChatCompletionObject
impl<'de> Deserialize<'de> for ChatCompletionObject
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 Display for ChatCompletionObject
impl Display for ChatCompletionObject
impl Eq for ChatCompletionObject
Source§impl Hash for ChatCompletionObject
impl Hash for ChatCompletionObject
Source§impl PartialEq for ChatCompletionObject
impl PartialEq for ChatCompletionObject
Source§impl Serialize for ChatCompletionObject
impl Serialize for ChatCompletionObject
impl StructuralPartialEq for ChatCompletionObject
Auto Trait Implementations§
impl Freeze for ChatCompletionObject
impl RefUnwindSafe for ChatCompletionObject
impl Send for ChatCompletionObject
impl Sync for ChatCompletionObject
impl Unpin for ChatCompletionObject
impl UnsafeUnpin for ChatCompletionObject
impl UnwindSafe for ChatCompletionObject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.