pub struct OptionRetention(/* private fields */);Expand description
If set to RETENTION_SOURCE, the option will be omitted from the binary.
Implementations§
Source§impl OptionRetention
impl OptionRetention
pub const RETENTION_UNKNOWN: OptionRetention
pub const RETENTION_RUNTIME: OptionRetention
pub const RETENTION_SOURCE: OptionRetention
Sourcepub fn as_str_name(&self) -> Cow<'static, str>
pub fn as_str_name(&self) -> Cow<'static, str>
Gets the enum value as a string.
Sourcepub fn from_str_name(name: &str) -> Option<Self>
pub fn from_str_name(name: &str) -> Option<Self>
Creates an enum value from the value name.
Trait Implementations§
Source§impl Clone for OptionRetention
impl Clone for OptionRetention
Source§fn clone(&self) -> OptionRetention
fn clone(&self) -> OptionRetention
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 OptionRetention
impl Debug for OptionRetention
Source§impl Default for OptionRetention
impl Default for OptionRetention
Source§impl<'de> Deserialize<'de> for OptionRetention
impl<'de> Deserialize<'de> for OptionRetention
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<i32> for OptionRetention
impl From<i32> for OptionRetention
Source§impl PartialEq for OptionRetention
impl PartialEq for OptionRetention
Source§impl Serialize for OptionRetention
impl Serialize 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 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