Struct mailin_embedded::Response
source · pub struct Response {
pub code: u16,
pub is_error: bool,
pub action: Action,
/* private fields */
}
Expand description
Response contains a code and message to be sent back to the client
Fields§
§code: u16
The three digit response code
is_error: bool
Is the response an error response?
action: Action
The action to take after sending the response to the client
Implementations§
Trait Implementations§
source§impl PartialEq for Response
impl PartialEq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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