pub fn custom(code: i32, message: &str) -> Self {
        let mut data = String::new();

        if data.push_str(message).is_err() {
            data = String::from("Truncated");
        }

        Self { code, data }
    }
/// A custom response type using the provided code and message.
A custom response type using the provided code and message.
A custom response type using the provided code and message .
pub fn custom(code: i32, message: &str) -> Self {
        let mut data = String::new();
        if data.push_str(message).is_err() {
            data = String::from("Truncated");
        }
        Self { code, data }
    }
pub fn custom ( code : i32 , message : & str ) -> Self { let mut data = String :: new ( ) ; if data . push_str ( message ) . is_err ( ) { data = String :: from ( " " ) ; } Self { code , data } }
A custom response type using the provided code and message.
A custom response type using the provided code and message .
code
i32
message
&str
code
i32
message
&str