Struct protobuf::descriptorx::OneofWithContext
[−]
[src]
pub struct OneofWithContext<'a> {
pub oneof: &'a OneofDescriptorProto,
pub index: u32,
pub message: &'a MessageWithScope<'a>,
}Fields
oneof: &'a OneofDescriptorProto
index: u32
message: &'a MessageWithScope<'a>
Methods
impl<'a> OneofWithContext<'a>[src]
fn name(&'a self) -> &'a str
fn rust_name(&self) -> String
fn variants(&'a self) -> Vec<OneofVariantWithContext<'a>>
Trait Implementations
impl<'a> Clone for OneofWithContext<'a>[src]
fn clone(&self) -> OneofWithContext<'a>
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