pub fn with(status_code: u16, message: &str) -> ResponseWithStatus {
        ResponseWithStatus {
            status_code,
            response: Response {
                message: String::from(message),
                data: serde_json::to_value("").unwrap(),
            },
        }
    }
/// Creates a `ResponseWithStatus` with the given status code and message, and empty data
Creates a `ResponseWithStatus` with the given status code and message, and empty data
Creates a ` ResponseWithStatus ` with the given status code and message and empty data
pub fn with(status_code: u16, message: &str) -> ResponseWithStatus {
        ResponseWithStatus {
            status_code,
            response: Response {
                message: String::from(message),
                data: serde_json::to_value("").unwrap(),
            },
        }
    }
pub fn with ( status_code : u16 , message : & str ) -> ResponseWithStatus { ResponseWithStatus { status_code , response : Response { message : String :: from ( message ) , data : serde_json :: to_value ( " " ) . unwrap ( ) , } , } }
Creates a `ResponseWithStatus` with the given status code and message, and empty data
Creates a ` ResponseWithStatus ` with the given status code and message and empty data
status_code
u16
message
&str
status_code
u16
message
&str