#[repr(i32)]pub enum ParameterFlag {
LinkIsActive = 1,
OverwriteIsActive = 2,
}
Expand description
System parameter’s flag
Parameter can have various system flags, which shows that it is been overwritten or linked. (Note: This list will grow in future)
Variants§
LinkIsActive = 1
Parameter is linked to another parameter.
OverwriteIsActive = 2
Parameter is being overwritten.
Implementations§
Source§impl ParameterFlag
impl ParameterFlag
Source§impl ParameterFlag
impl ParameterFlag
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.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ParameterFlag
impl Clone for ParameterFlag
Source§fn clone(&self) -> ParameterFlag
fn clone(&self) -> ParameterFlag
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 ParameterFlag
impl Debug for ParameterFlag
Source§impl Default for ParameterFlag
impl Default for ParameterFlag
Source§fn default() -> ParameterFlag
fn default() -> ParameterFlag
Returns the “default value” for a type. Read more
Source§impl From<ParameterFlag> for i32
impl From<ParameterFlag> for i32
Source§fn from(value: ParameterFlag) -> i32
fn from(value: ParameterFlag) -> i32
Converts to this type from the input type.
Source§impl Hash for ParameterFlag
impl Hash for ParameterFlag
Source§impl Ord for ParameterFlag
impl Ord for ParameterFlag
Source§fn cmp(&self, other: &ParameterFlag) -> Ordering
fn cmp(&self, other: &ParameterFlag) -> 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 ParameterFlag
impl PartialEq for ParameterFlag
Source§impl PartialOrd for ParameterFlag
impl PartialOrd for ParameterFlag
Source§impl TryFrom<i32> for ParameterFlag
impl TryFrom<i32> for ParameterFlag
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ParameterFlag, UnknownEnumValue>
fn try_from(value: i32) -> Result<ParameterFlag, UnknownEnumValue>
Performs the conversion.
impl Copy for ParameterFlag
impl Eq for ParameterFlag
impl StructuralPartialEq for ParameterFlag
Auto Trait Implementations§
impl Freeze for ParameterFlag
impl RefUnwindSafe for ParameterFlag
impl Send for ParameterFlag
impl Sync for ParameterFlag
impl Unpin for ParameterFlag
impl UnwindSafe for ParameterFlag
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