Derive Macro fav_derive::Status
source · #[derive(Status)]
{
// Attributes available to this derive:
#[status]
}
Expand description
A derive macro helping implemente Status
trait.
§Example
use fav_core::status::Status;
#[derive(Status)]
struct Res {
status: i32,
}
#[derive(Status)]
#[status(my_status)]
struct Res_ {
my_status: i32,
}
Default field is status
.
In practice, the Res
is comming from protobuf-codegen
,
making the attribute status
referring to the fields needed.