pub struct GatewayError {
pub code: GatewayErrorCode,
pub description: String,
}
Expand description
If a Request or Message is not accepted by the gateway this will be returned in the corresponding Response or MessageResponse.
Fields§
§code: GatewayErrorCode
Error code returned by One API
description: String
Description of the error
Trait Implementations§
Source§impl Clone for GatewayError
impl Clone for GatewayError
Source§fn clone(&self) -> GatewayError
fn clone(&self) -> GatewayError
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 Debug for GatewayError
impl Debug for GatewayError
Source§impl<'de> Deserialize<'de> for GatewayError
impl<'de> Deserialize<'de> for GatewayError
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 Display for GatewayError
impl Display for GatewayError
Source§impl PartialEq for GatewayError
impl PartialEq for GatewayError
impl StructuralPartialEq for GatewayError
Auto Trait Implementations§
impl Freeze for GatewayError
impl RefUnwindSafe for GatewayError
impl Send for GatewayError
impl Sync for GatewayError
impl Unpin for GatewayError
impl UnwindSafe for GatewayError
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