Lines Matching full:customize
14 /// Dynamic callback to customize code generation.
16 fn file(&self, file: &FileDescriptor) -> Customize { in file() argument
18 Customize::default() in file()
21 fn message(&self, message: &MessageDescriptor) -> Customize { in message() argument
23 Customize::default() in message()
26 fn field(&self, field: &FieldDescriptor) -> Customize { in field() argument
28 Customize::default() in field()
31 fn special_field(&self, message: &MessageDescriptor, field: &str) -> Customize { in special_field() argument
33 Customize::default() in special_field()
36 fn enumeration(&self, enum_type: &EnumDescriptor) -> Customize { in enumeration() argument
38 Customize::default() in enumeration()
41 fn oneof(&self, oneof: &OneofDescriptor) -> Customize { in oneof() argument
43 Customize::default() in oneof()
90 pub struct Customize { struct
122 impl Customize { argument
125 … here](https://github.com/stepancheg/rust-protobuf/tree/master/protobuf-examples/customize-serde)).
174 /// Update fields of self with fields defined in other customize
175 pub fn update_with(&mut self, that: &Customize) { in update_with() argument
202 /// Update unset fields of self with fields from other customize
203 pub fn set_defaults_from(&mut self, other: &Customize) { in set_defaults_from() argument
209 /// Parse customize options from a string passed via protoc flag.
210 pub fn parse_from_parameter(parameter: &str) -> anyhow::Result<Customize> { in parse_from_parameter() argument
216 let mut r = Customize::default(); in parse_from_parameter()