pub fn from_response(cause: T, response: HttpResponse) -> Self {
        InternalError {
            cause,
            status: InternalErrorType::Response(RefCell::new(Some(response))),
        }
    }
/// Constructs an `InternalError` with pre-defined response.
Constructs an `InternalError` with pre-defined response.
Constructs an ` InternalError ` with pre - defined response .
pub fn from_response(cause: T, response: HttpResponse) -> Self {
        InternalError {
            cause,
            status: InternalErrorType::Response(RefCell::new(Some(response))),
        }
    }
pub fn from_response ( cause : T , response : HttpResponse ) -> Self { InternalError { cause , status : InternalErrorType :: Response ( RefCell :: new ( Some ( response ) ) ) , } }
Constructs an `InternalError` with pre-defined response.
Constructs an ` InternalError ` with pre - defined response .
cause
T
response
HttpResponse
cause
T
response
HttpResponse