Struct protoc_rust::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
expose_oneof: Option<bool>
                           Make oneof enum public.
expose_fields: Option<bool>
                           When true all fields are public, and accessors are not generated
generate_accessors: Option<bool>
                           When false, get_, set_, mut_ etc. accessors are not generated
carllerche_bytes_for_bytes: Option<bool>
                           Use bytes::Bytes for bytes fields
carllerche_bytes_for_string: Option<bool>
                           Use bytes::Bytes for string fields
serde_derive: Option<bool>
                           Implement serde_derive for messages
serde_derive_cfg: Option<String>
                           When serde_derive is set, serde annotations will be guarded with #[cfg(cfg, ...)].
_future_options: ()
                           Make sure Customize is always used with ..Default::default()
for future compatibility.
Methods
impl Customize[src] 
impl Customizepub fn update_with(&mut self, that: &Customize)[src] 
pub fn update_with(&mut self, that: &Customize)Update fields of self with fields defined in other customize
pub fn set_defaults_from(&mut self, other: &Customize)[src] 
pub fn set_defaults_from(&mut self, other: &Customize)Update unset fields of self with fields from other customize
pub fn parse_from_parameter(
    parameter: &str
) -> Result<Customize, CustomizeParseParameterError>[src] 
pub fn parse_from_parameter(
    parameter: &str
) -> Result<Customize, CustomizeParseParameterError>Parse customize options from a string passed via protoc flag.
Trait Implementations
impl Clone for Customize[src] 
impl Clone for Customizefn clone(&self) -> Customize[src] 
fn clone(&self) -> CustomizeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Default for Customize[src] 
impl Default for Customizeimpl Debug for Customize[src] 
impl Debug for Customize