protobuf_codegen

Trait CustomizeCallback

source
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.

Provided Methods§

source

fn file(&self, file: &FileDescriptor) -> Customize

source

fn message(&self, message: &MessageDescriptor) -> Customize

source

fn field(&self, field: &FieldDescriptor) -> Customize

source

fn special_field(&self, message: &MessageDescriptor, field: &str) -> Customize

source

fn enumeration(&self, enum_type: &EnumDescriptor) -> Customize

source

fn oneof(&self, oneof: &OneofDescriptor) -> Customize

Implementors§