Struct prost_types::EnumValueOptions [−][src]
Fields
deprecated: Option<bool>
Is this enum value deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum value, or it will be completely ignored; in the very least, this is a formalization for deprecating enum values.
uninterpreted_option: Vec<UninterpretedOption>
The parser stores options it doesn’t recognize here. See above.
Implementations
impl EnumValueOptions
[src][−]
pub fn deprecated(&self) -> bool
[src][−]
Returns the value of deprecated
, or the default value if deprecated
is unset.
Trait Implementations
impl Clone for EnumValueOptions
[src][+]
impl Debug for EnumValueOptions
[src][+]
impl Default for EnumValueOptions
[src][+]
impl Message for EnumValueOptions
[src][+]
impl PartialEq<EnumValueOptions> for EnumValueOptions
[src][+]
impl StructuralPartialEq for EnumValueOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for EnumValueOptions
impl Send for EnumValueOptions
impl Sync for EnumValueOptions
impl Unpin for EnumValueOptions
impl UnwindSafe for EnumValueOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,