Attribute Macro visible::StructFields
source · [−]#[StructFields]
Expand description
Overrides the visibility of the annotated struct fields with the one given to this attribute:
Example
#[visible::StructFields(pub(crate))]
pub struct Test {
pub a: i32,
pub b: i64,
}