pub struct ResponseHead {
pub warnings: Vec<Warning>,
pub envelope: Envelope,
}Expand description
A response head: zero or more warnings followed by an envelope.
Fields§
§warnings: Vec<Warning>§envelope: EnvelopeImplementations§
Source§impl ResponseHead
impl ResponseHead
pub fn ok(token: StateToken) -> Self
pub fn err(code: ErrorCode, args: Vec<String>) -> Self
pub fn with_warning(self, w: Warning) -> Self
Trait Implementations§
Source§impl Clone for ResponseHead
impl Clone for ResponseHead
Source§fn clone(&self) -> ResponseHead
fn clone(&self) -> ResponseHead
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 ResponseHead
impl Debug for ResponseHead
Source§impl PartialEq for ResponseHead
impl PartialEq for ResponseHead
Source§fn eq(&self, other: &ResponseHead) -> bool
fn eq(&self, other: &ResponseHead) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ResponseHead
impl StructuralPartialEq for ResponseHead
Auto Trait Implementations§
impl Freeze for ResponseHead
impl RefUnwindSafe for ResponseHead
impl Send for ResponseHead
impl Sync for ResponseHead
impl Unpin for ResponseHead
impl UnsafeUnpin for ResponseHead
impl UnwindSafe for ResponseHead
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