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>,
}

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

Methods

impl Customize
[src]

[src]

Update fields of self with fields defined in other customize

[src]

Update unset fields of self with fields from other customize

Trait Implementations

impl Default for Customize
[src]

[src]

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

impl Debug for Customize
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Customize
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Customize

impl Sync for Customize