pub fn new_err<C>(reason: C) -> Self
    where
        C: Into<String>,
    {
        Self {
            success: false,
            data: None,
            error: Some(ApiError {
                reason: reason.into(),
            }),
        }
    }
/// Create a new error response.
Create a new error response.
Create a new error response .
pub fn new_err<C>(reason: C) -> Self
    where
        C: Into<String>,
    {
        Self {
            success: false,
            data: None,
            error: Some(ApiError {
                reason: reason.into(),
            }),
        }
    }
pub fn new_err < C > ( reason : C ) -> Self where C : Into < String > , { Self { success : false , data : None , error : Some ( ApiError { reason : reason . into ( ) , } ) , } }
Create a new error response.
Create a new error response .
reason
C