pub fn field_assignment(
unified_type: &UnifiedType,
field_ident: &Ident,
ctx: &RenderContext,
runtime: Runtime,
) -> TokenStreamExpand description
Generate field assignment code.
Wraps a constructor/builder parameter so it can be stored into the request struct field.
runtime selects the ABI of the protobuf library the generated code consumes:
Runtime::Prost: open enums arei32(#field as i32); singular message/oneof fields areOption<Box<T>>(Some(#field)).Runtime::Buffa: open enums areEnumValue<E>(buffa::EnumValue::Known(#field)); singular message/oneof fields areMessageField<T>(buffa::MessageField::some(#field)).