Struct prost_reflect::EnumValueDescriptor
source · pub struct EnumValueDescriptor { /* private fields */ }
Expand description
A value in a protobuf enum type.
Implementations§
source§impl EnumValueDescriptor
impl EnumValueDescriptor
sourcepub fn parent_pool(&self) -> &DescriptorPool
pub fn parent_pool(&self) -> &DescriptorPool
Gets a reference to the DescriptorPool
this enum value is defined in.
sourcepub fn parent_file(&self) -> FileDescriptor
pub fn parent_file(&self) -> FileDescriptor
Gets the FileDescriptor
this enum value is defined in.
sourcepub fn parent_enum(&self) -> &EnumDescriptor
pub fn parent_enum(&self) -> &EnumDescriptor
Gets a reference to the EnumDescriptor
this enum value is defined in.
sourcepub fn full_name(&self) -> &str
pub fn full_name(&self) -> &str
Gets the full name of the enum value, e.g. my.package.MY_VALUE
.
sourcepub fn path(&self) -> &[i32]
pub fn path(&self) -> &[i32]
Gets the path where this enum value is defined within the FileDescriptorProto
, e.g. [5, 0, 2, 0]
.
See path
for more details on the structure of the path.
sourcepub fn enum_value_descriptor_proto(&self) -> &EnumValueDescriptorProto
pub fn enum_value_descriptor_proto(&self) -> &EnumValueDescriptorProto
Gets a reference to the raw EnumValueDescriptorProto
wrapped by this EnumValueDescriptor
.
sourcepub fn options(&self) -> DynamicMessage
pub fn options(&self) -> DynamicMessage
Decodes the options defined for this EnumValueDescriptor
, including any extension options.
Trait Implementations§
source§impl Clone for EnumValueDescriptor
impl Clone for EnumValueDescriptor
source§fn clone(&self) -> EnumValueDescriptor
fn clone(&self) -> EnumValueDescriptor
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 EnumValueDescriptor
impl Debug for EnumValueDescriptor
source§impl PartialEq for EnumValueDescriptor
impl PartialEq for EnumValueDescriptor
impl Eq for EnumValueDescriptor
impl StructuralPartialEq for EnumValueDescriptor
Auto Trait Implementations§
impl Freeze for EnumValueDescriptor
impl RefUnwindSafe for EnumValueDescriptor
impl Send for EnumValueDescriptor
impl Sync for EnumValueDescriptor
impl Unpin for EnumValueDescriptor
impl UnwindSafe for EnumValueDescriptor
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)