1
2
3
4
5
6
7
use crate::prelude::rings_rpc::response::CustomBackendMessage;

impl From<crate::backend::types::BackendMessage> for CustomBackendMessage {
    fn from(v: crate::backend::types::BackendMessage) -> Self {
        (v.message_type, base64::encode(v.data)).into()
    }
}