#[repr(i32)]pub enum ParamType {
Unspecified = 0,
Int = 1,
Float = 2,
Bool = 3,
String = 4,
Enum = 5,
Vec3 = 6,
}Expand description
Closed type set for parameter values. Residue / entity / range references are NOT here - they travel via DispatchContext.
Variants§
Unspecified = 0
Int = 1
Float = 2
Bool = 3
String = 4
Enum = 5
encoded on the wire as string_value, validated by EnumValues constraint
Vec3 = 6
Implementations§
Source§impl ParamType
impl ParamType
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§
impl Copy for ParamType
impl Eq for ParamType
Source§impl Ord for ParamType
impl Ord for ParamType
1.21.0 (const: unstable) · 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 PartialOrd for ParamType
impl PartialOrd for ParamType
impl StructuralPartialEq for ParamType
Auto Trait Implementations§
impl Freeze for ParamType
impl RefUnwindSafe for ParamType
impl Send for ParamType
impl Sync for ParamType
impl Unpin for ParamType
impl UnsafeUnpin for ParamType
impl UnwindSafe for ParamType
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