sark-json 0.7.0

the L7 layer for dope
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub(super) struct Fail;

impl Fail {
    pub(super) fn bad() -> sark_core::error::Error {
        sark_core::error::Error::BadRequest("Invalid JSON body".into())
    }

    pub(super) fn with(msg: impl Into<String>) -> sark_core::error::Error {
        sark_core::error::Error::BadRequest(msg.into().into())
    }
}