pub struct ChatApiErrorResponse {
pub message: Option<String>,
pub error: Option<String>,
}Fields§
§message: Option<String>§error: Option<String>Implementations§
Source§impl ChatApiErrorResponse
impl ChatApiErrorResponse
pub fn error_message(&self) -> &str
Trait Implementations§
Source§impl Debug for ChatApiErrorResponse
impl Debug for ChatApiErrorResponse
Source§impl<'de> Deserialize<'de> for ChatApiErrorResponse
impl<'de> Deserialize<'de> for ChatApiErrorResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChatApiErrorResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChatApiErrorResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ChatApiErrorResponse
impl RefUnwindSafe for ChatApiErrorResponse
impl Send for ChatApiErrorResponse
impl Sync for ChatApiErrorResponse
impl Unpin for ChatApiErrorResponse
impl UnsafeUnpin for ChatApiErrorResponse
impl UnwindSafe for ChatApiErrorResponse
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