Struct cohere_rust::api::detect_language::DetectLanguageResult
source · pub struct DetectLanguageResult {
pub language_name: String,
pub language_code: String,
}
Fields§
§language_name: String
Name of the language, e.g. “Spanish”
language_code: String
Code of the language, e.g. “es”
Trait Implementations§
source§impl Debug for DetectLanguageResult
impl Debug for DetectLanguageResult
source§impl<'de> Deserialize<'de> for DetectLanguageResult
impl<'de> Deserialize<'de> for DetectLanguageResult
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 for DetectLanguageResult
impl PartialEq for DetectLanguageResult
source§fn eq(&self, other: &DetectLanguageResult) -> bool
fn eq(&self, other: &DetectLanguageResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DetectLanguageResult
Auto Trait Implementations§
impl RefUnwindSafe for DetectLanguageResult
impl Send for DetectLanguageResult
impl Sync for DetectLanguageResult
impl Unpin for DetectLanguageResult
impl UnwindSafe for DetectLanguageResult
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