#[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 · 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§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§impl Hash for OptionRetention
impl Hash for OptionRetention
Source§impl PartialEq for OptionRetention
impl PartialEq for OptionRetention
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