use crate::Message;
#[cfg(not(feature = "std"))]
use alloc::{format, string::String};
pub trait Name: Message {
const NAME: &'static str;
const PACKAGE: &'static str;
fn full_name() -> String {
format!("{}.{}", Self::PACKAGE, Self::NAME)
}
fn type_url() -> String {
format!("/{}", Self::full_name())
}
}