Struct chatgpt::types::CompletionError
source · pub struct CompletionError {
pub message: String,
pub error_type: String,
}Expand description
An error happened while requesting completion
Fields§
§message: StringMessage, describing the error
error_type: StringThe type of error. Example: server_error
Trait Implementations§
source§impl Clone for CompletionError
impl Clone for CompletionError
source§fn clone(&self) -> CompletionError
fn clone(&self) -> CompletionError
Returns a copy 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 CompletionError
impl Debug for CompletionError
source§impl<'de> Deserialize<'de> for CompletionError
impl<'de> Deserialize<'de> for CompletionError
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 PartialEq<CompletionError> for CompletionError
impl PartialEq<CompletionError> for CompletionError
source§fn eq(&self, other: &CompletionError) -> bool
fn eq(&self, other: &CompletionError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<CompletionError> for CompletionError
impl PartialOrd<CompletionError> for CompletionError
source§fn partial_cmp(&self, other: &CompletionError) -> Option<Ordering>
fn partial_cmp(&self, other: &CompletionError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more