pub struct ServerErrorEnvelope {
pub success: bool,
pub status: u16,
pub error: ServerErrorDescriptor,
}Fields§
§success: bool§status: u16§error: ServerErrorDescriptorImplementations§
Source§impl ServerErrorEnvelope
impl ServerErrorEnvelope
pub fn new(status: u16, error: ServerErrorDescriptor) -> Self
Trait Implementations§
Source§impl Clone for ServerErrorEnvelope
impl Clone for ServerErrorEnvelope
Source§fn clone(&self) -> ServerErrorEnvelope
fn clone(&self) -> ServerErrorEnvelope
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 ServerErrorEnvelope
impl Debug for ServerErrorEnvelope
Source§impl PartialEq for ServerErrorEnvelope
impl PartialEq for ServerErrorEnvelope
Source§fn eq(&self, other: &ServerErrorEnvelope) -> bool
fn eq(&self, other: &ServerErrorEnvelope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ServerErrorEnvelope
impl Serialize for ServerErrorEnvelope
impl Eq for ServerErrorEnvelope
impl StructuralPartialEq for ServerErrorEnvelope
Auto Trait Implementations§
impl Freeze for ServerErrorEnvelope
impl RefUnwindSafe for ServerErrorEnvelope
impl Send for ServerErrorEnvelope
impl Sync for ServerErrorEnvelope
impl Unpin for ServerErrorEnvelope
impl UnsafeUnpin for ServerErrorEnvelope
impl UnwindSafe for ServerErrorEnvelope
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