#[repr(i32)]pub enum ValuePickedFrom {
Unspecified = 0,
Default = 1,
Server = 2,
Local = 3,
}Expand description
The source of the current flag value.
Variants§
Unspecified = 0
Default = 1
The value is the build-time default.
Server = 2
The value comes from a server-side override.
Local = 3
The value comes from a local override on the device.
Implementations§
Source§impl ValuePickedFrom
impl ValuePickedFrom
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Trait Implementations§
Source§impl Clone for ValuePickedFrom
impl Clone for ValuePickedFrom
Source§fn clone(&self) -> ValuePickedFrom
fn clone(&self) -> ValuePickedFrom
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 ValuePickedFrom
impl Debug for ValuePickedFrom
Source§impl Default for ValuePickedFrom
impl Default for ValuePickedFrom
Source§fn default() -> ValuePickedFrom
fn default() -> ValuePickedFrom
Returns the “default value” for a type. Read more
Source§impl From<ValuePickedFrom> for i32
impl From<ValuePickedFrom> for i32
Source§fn from(value: ValuePickedFrom) -> i32
fn from(value: ValuePickedFrom) -> i32
Converts to this type from the input type.
Source§impl Hash for ValuePickedFrom
impl Hash for ValuePickedFrom
Source§impl Ord for ValuePickedFrom
impl Ord for ValuePickedFrom
Source§fn cmp(&self, other: &ValuePickedFrom) -> Ordering
fn cmp(&self, other: &ValuePickedFrom) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ValuePickedFrom
impl PartialEq for ValuePickedFrom
Source§impl PartialOrd for ValuePickedFrom
impl PartialOrd for ValuePickedFrom
impl Copy for ValuePickedFrom
impl Eq for ValuePickedFrom
impl StructuralPartialEq for ValuePickedFrom
Auto Trait Implementations§
impl Freeze for ValuePickedFrom
impl RefUnwindSafe for ValuePickedFrom
impl Send for ValuePickedFrom
impl Sync for ValuePickedFrom
impl Unpin for ValuePickedFrom
impl UnsafeUnpin for ValuePickedFrom
impl UnwindSafe for ValuePickedFrom
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