Struct protobuf_codegen::Customize[][src]

pub struct Customize {
    pub expose_oneof: Option<bool>,
    pub expose_fields: Option<bool>,
    pub generate_accessors: Option<bool>,
    pub carllerche_bytes_for_bytes: Option<bool>,
    pub carllerche_bytes_for_string: Option<bool>,
    pub serde_derive: Option<bool>,
    pub serde_derive_cfg: Option<String>,
    pub _future_options: (),
}

Specifies style of generated code.

Fields

Make oneof enum public.

When true all fields are public, and accessors are not generated

When false, get_, set_, mut_ etc. accessors are not generated

Use bytes::Bytes for bytes fields

Use bytes::Bytes for string fields

Implement serde_derive for messages

When serde_derive is set, serde annotations will be guarded with #[cfg(cfg, ...)].

Make sure Customize is always used with ..Default::default() for future compatibility.

Methods

impl Customize
[src]

Update fields of self with fields defined in other customize

Update unset fields of self with fields from other customize

Parse customize options from a string passed via protoc flag.

Trait Implementations

impl Default for Customize
[src]

Returns the "default value" for a type. Read more

impl Debug for Customize
[src]

Formats the value using the given formatter. Read more

impl Clone for Customize
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Customize

impl Sync for Customize