#[repr(i32)]pub enum OptionRetention {
RETENTION_UNKNOWN = 0,
RETENTION_RUNTIME = 1,
RETENTION_SOURCE = 2,
}Expand description
If set to RETENTION_SOURCE, the option will be omitted from the binary.
Variants§
Implementations§
Source§impl OptionRetention
impl OptionRetention
Sourcepub const RetentionUnknown: OptionRetention = Self::RETENTION_UNKNOWN
pub const RetentionUnknown: OptionRetention = Self::RETENTION_UNKNOWN
Idiomatic alias for Self::RETENTION_UNKNOWN; Debug prints the variant name.
Sourcepub const RetentionRuntime: OptionRetention = Self::RETENTION_RUNTIME
pub const RetentionRuntime: OptionRetention = Self::RETENTION_RUNTIME
Idiomatic alias for Self::RETENTION_RUNTIME; Debug prints the variant name.
Sourcepub const RetentionSource: OptionRetention = Self::RETENTION_SOURCE
pub const RetentionSource: OptionRetention = Self::RETENTION_SOURCE
Idiomatic alias for Self::RETENTION_SOURCE; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for OptionRetention
impl Clone for OptionRetention
Source§fn clone(&self) -> OptionRetention
fn clone(&self) -> OptionRetention
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OptionRetention
Source§impl Debug for OptionRetention
impl Debug for OptionRetention
Source§impl Default for OptionRetention
impl Default for OptionRetention
Source§fn default() -> OptionRetention
fn default() -> OptionRetention
Returns the “default value” for a type. Read more
Source§impl Enumeration for OptionRetention
impl Enumeration for OptionRetention
Source§fn from_i32(value: i32) -> Option<OptionRetention>
fn from_i32(value: i32) -> Option<OptionRetention>
Convert from an
i32 wire value to the enum. Read moreSource§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.Source§fn from_proto_name(name: &str) -> Option<OptionRetention>
fn from_proto_name(name: &str) -> Option<OptionRetention>
Look up a variant by its protobuf name string. Read more
Source§fn values() -> &'static [OptionRetention]
fn values() -> &'static [OptionRetention]
All known variants of this enum, in proto declaration order. Read more
impl Eq for OptionRetention
Source§impl Hash for OptionRetention
impl Hash for OptionRetention
Source§impl PartialEq for OptionRetention
impl PartialEq for OptionRetention
Source§fn eq(&self, other: &OptionRetention) -> bool
fn eq(&self, other: &OptionRetention) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OptionRetention
Auto Trait Implementations§
impl Freeze for OptionRetention
impl RefUnwindSafe for OptionRetention
impl Send for OptionRetention
impl Sync for OptionRetention
impl Unpin for OptionRetention
impl UnsafeUnpin for OptionRetention
impl UnwindSafe for OptionRetention
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