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