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§impl Debug for ResponseHead
impl Debug for ResponseHead
impl Eq for ResponseHead
Source§impl PartialEq for ResponseHead
impl PartialEq for ResponseHead
impl StructuralPartialEq for ResponseHead
Auto Trait Implementations§
impl Forget for ResponseHead
impl Freeze for ResponseHead
impl Move 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