[−][src]Struct protobuf_codegen_pure::Customize
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]
pub fn update_with(&mut self, that: &Customize)[src]
Update fields of self with fields defined in other customize
pub fn set_defaults_from(&mut self, other: &Customize)[src]
Update unset fields of self with fields from other customize
pub fn parse_from_parameter(
parameter: &str
) -> Result<Customize, CustomizeParseParameterError>[src]
parameter: &str
) -> Result<Customize, CustomizeParseParameterError>
Parse customize options from a string passed via protoc flag.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,