#[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§
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 moreSource§impl Debug for OptionRetention
impl Debug for OptionRetention
Source§impl Default for OptionRetention
impl Default for OptionRetention
Source§impl Enumeration for OptionRetention
impl Enumeration for OptionRetention
Source§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§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 Copy for OptionRetention
impl Eq for OptionRetention
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