pub struct OneofDescriptor { /* private fields */ }
Expand description
Oneof descriptor.
Implementations§
Source§impl OneofDescriptor
impl OneofDescriptor
Sourcepub fn proto(&self) -> &OneofDescriptorProto
pub fn proto(&self) -> &OneofDescriptorProto
.proto
part associated with this descriptor
Sourcepub fn containing_message(&self) -> MessageDescriptor
pub fn containing_message(&self) -> MessageDescriptor
Message which contains this oneof.
Sourcepub fn is_synthetic(&self) -> bool
pub fn is_synthetic(&self) -> bool
This oneof is not present in sources.
Sourcepub fn full_name(&self) -> String
pub fn full_name(&self) -> String
Fully qualified name of oneof (fully qualified name of enclosing message followed by oneof name).
Sourcepub fn fields<'a>(&'a self) -> impl Iterator<Item = FieldDescriptor> + 'a
pub fn fields<'a>(&'a self) -> impl Iterator<Item = FieldDescriptor> + 'a
Fields in this oneof.
Trait Implementations§
Source§impl Clone for OneofDescriptor
impl Clone for OneofDescriptor
Source§fn clone(&self) -> OneofDescriptor
fn clone(&self) -> OneofDescriptor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OneofDescriptor
impl Debug for OneofDescriptor
Source§impl PartialEq for OneofDescriptor
impl PartialEq for OneofDescriptor
impl Eq for OneofDescriptor
impl StructuralPartialEq for OneofDescriptor
Auto Trait Implementations§
impl Freeze for OneofDescriptor
impl !RefUnwindSafe for OneofDescriptor
impl Send for OneofDescriptor
impl Sync for OneofDescriptor
impl Unpin for OneofDescriptor
impl !UnwindSafe for OneofDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more