mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-02-23 04:52:28 +00:00
make created structs public by default
This commit is contained in:
parent
d2275df6ff
commit
282b6bc75d
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
macro_rules! rest_struct {
|
||||
($struct_name:ident { $($field_id:ident : $field_ty:ty),* }) => {
|
||||
#[derive(serde::Deserialize, serde::Serialize)]
|
||||
struct $struct_name
|
||||
pub struct $struct_name
|
||||
{
|
||||
$($field_id : $field_ty),*
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ macro_rules! rest_struct {
|
|||
#[macro_export]
|
||||
macro_rules! rest_resource {
|
||||
($res_name:ident, $route:ident => $setup:block) => {
|
||||
struct $res_name;
|
||||
pub struct $res_name;
|
||||
|
||||
impl ::gotham_restful::Resource for $res_name
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue