pub struct RealtimeAPIError {
pub type: String,
pub code: Option<String>,
pub message: String,
pub param: Option<String>,
pub event_id: Option<String>,
}Fields§
§type: StringThe type of error (e.g., “invalid_request_error”, “server_error”).
code: Option<String>Error code, if any.
message: StringA human-readable error message.
param: Option<String>Parameter related to the error, if any.
event_id: Option<String>The event_id of the client event that caused the error, if applicable.
Trait Implementations§
Source§impl Clone for RealtimeAPIError
impl Clone for RealtimeAPIError
Source§fn clone(&self) -> RealtimeAPIError
fn clone(&self) -> RealtimeAPIError
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 moreSource§impl Debug for RealtimeAPIError
impl Debug for RealtimeAPIError
Source§impl<'de> Deserialize<'de> for RealtimeAPIError
impl<'de> Deserialize<'de> for RealtimeAPIError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RealtimeAPIError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RealtimeAPIError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RealtimeAPIError
impl Serialize for RealtimeAPIError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RealtimeAPIError
impl RefUnwindSafe for RealtimeAPIError
impl Send for RealtimeAPIError
impl Sync for RealtimeAPIError
impl Unpin for RealtimeAPIError
impl UnsafeUnpin for RealtimeAPIError
impl UnwindSafe for RealtimeAPIError
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