pub struct RealtimeServerEventErrorError {
pub type: String,
pub code: Option<String>,
pub message: String,
pub param: Option<String>,
pub event_id: Option<String>,
}
Expand description
Details of the error.
Fields§
§type: String
The type of error (e.g., “invalid_request_error”, “server_error”).
code: Option<String>
Error code, if any.
message: String
A 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.
Implementations§
Source§impl RealtimeServerEventErrorError
impl RealtimeServerEventErrorError
Sourcepub fn builder() -> RealtimeServerEventErrorErrorBuilder<((), (), (), (), ())>
pub fn builder() -> RealtimeServerEventErrorErrorBuilder<((), (), (), (), ())>
Create a builder for building RealtimeServerEventErrorError
.
On the builder, call .r#type(...)
, .code(...)
(optional), .message(...)
, .param(...)
(optional), .event_id(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeServerEventErrorError
.
Trait Implementations§
Source§impl Clone for RealtimeServerEventErrorError
impl Clone for RealtimeServerEventErrorError
Source§fn clone(&self) -> RealtimeServerEventErrorError
fn clone(&self) -> RealtimeServerEventErrorError
Returns a duplicate 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<'de> Deserialize<'de> for RealtimeServerEventErrorError
impl<'de> Deserialize<'de> for RealtimeServerEventErrorError
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 RealtimeServerEventErrorError
impl PartialEq for RealtimeServerEventErrorError
Source§fn eq(&self, other: &RealtimeServerEventErrorError) -> bool
fn eq(&self, other: &RealtimeServerEventErrorError) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeServerEventErrorError
Auto Trait Implementations§
impl Freeze for RealtimeServerEventErrorError
impl RefUnwindSafe for RealtimeServerEventErrorError
impl Send for RealtimeServerEventErrorError
impl Sync for RealtimeServerEventErrorError
impl Unpin for RealtimeServerEventErrorError
impl UnwindSafe for RealtimeServerEventErrorError
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