new

Function new 

Source
pub fn new<V>(value: V) -> HalResponse
where V: Serialize,
Expand description

Create a new HAL response for the given payload value.

ยงPanics

This will panic if the value provided can not be serialized into JSON for some reason.