This commit is contained in:
@@ -6,11 +6,13 @@ pub struct GenericResponse {
|
||||
}
|
||||
|
||||
impl GenericResponse {
|
||||
#[cfg(engine)]
|
||||
pub fn ok() -> Self {
|
||||
GenericResponse {
|
||||
status: String::new(),
|
||||
}
|
||||
}
|
||||
#[cfg(engine)]
|
||||
pub fn err(msg: &str) -> Self {
|
||||
GenericResponse {
|
||||
status: msg.to_string(),
|
||||
|
||||
Reference in New Issue
Block a user