pub trait CustomizeCallback: 'static {
// Provided methods
fn file(&self, file: &FileDescriptor) -> Customize { ... }
fn message(&self, message: &MessageDescriptor) -> Customize { ... }
fn field(&self, field: &FieldDescriptor) -> Customize { ... }
fn special_field(
&self,
message: &MessageDescriptor,
field: &str,
) -> Customize { ... }
fn enumeration(&self, enum_type: &EnumDescriptor) -> Customize { ... }
fn oneof(&self, oneof: &OneofDescriptor) -> Customize { ... }
}
Expand description
Dynamic callback to customize code generation.