feat: add native_model_id_str and native_model_version_str
This commit is contained in:
committed by
Vincent Herlemont
parent
07c8900dde
commit
003d1f3b1d
@@ -8,6 +8,10 @@ pub(crate) fn generate_native_model_id(model_attributes: &ModelAttributes) -> To
|
||||
fn native_model_id() -> u32 {
|
||||
#native_model_id
|
||||
}
|
||||
|
||||
fn native_model_id_str() -> &'static str {
|
||||
stringify!(#native_model_id)
|
||||
}
|
||||
};
|
||||
gen
|
||||
}
|
||||
|
||||
@@ -8,6 +8,10 @@ pub(crate) fn generate_native_model_version(model_attributes: &ModelAttributes)
|
||||
fn native_model_version() -> u32 {
|
||||
#native_model_version
|
||||
}
|
||||
|
||||
fn native_model_version_str() -> &'static str {
|
||||
stringify!(#native_model_version)
|
||||
}
|
||||
};
|
||||
gen
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user