Struct reproto_core::RpEnumBody
[−]
[src]
pub struct RpEnumBody { pub name: String, pub comment: Vec<String>, pub variants: Vec<Loc<Rc<RpEnumVariant>>>, pub fields: Vec<Loc<RpField>>, pub codes: Vec<Loc<RpCode>>, pub match_decl: RpMatchDecl, pub serialized_as: Option<Loc<String>>, pub serialized_as_name: bool, }
Fields
name: String
comment: Vec<String>
variants: Vec<Loc<Rc<RpEnumVariant>>>
fields: Vec<Loc<RpField>>
codes: Vec<Loc<RpCode>>
match_decl: RpMatchDecl
serialized_as: Option<Loc<String>>
serialized_as_name: bool
Trait Implementations
impl Debug for RpEnumBody
[src]
impl Clone for RpEnumBody
[src]
fn clone(&self) -> RpEnumBody
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Merge for RpEnumBody
[src]
fn merge(&mut self, source: RpEnumBody) -> Result<()>
Merge the current model with another.