#[repr(i32)]pub enum ParameterType {
ParamTypeUndefined = 0,
Input = 1,
Output = 16,
Parameter = 256,
ParameterVolatile = 257,
ParameterPersistent = 258,
}Expand description
Parameter’s IO types.
Each parameter in the tree can be an INPUT, an OUTPUT or a PARAMETER.
PARAMETER type is both an input and output, it can be saved and loaded from the disk.
Value of a parameter with OUTPUT type cannot be set, but can be overwritten (forced). Force operation on the OUTPUT will only change the parameter value on everything that is linked to it. It will NOT change the internal value of the block to which the output belongs.
Variants§
ParamTypeUndefined = 0
Input = 1
Input parameter.
Output = 16
Output parameter.
Parameter = 256
Input/output parameter, which is saved and loaded from the disk on request.
ParameterVolatile = 257
Input/output parameter, which is valotile, not saved or loaded from the disk.
ParameterPersistent = 258
Input/output parameter, which is persistent, continuously saved and loaded from the disk.
Implementations§
Source§impl ParameterType
impl ParameterType
Source§impl ParameterType
impl ParameterType
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 ParameterType
impl Clone for ParameterType
Source§fn clone(&self) -> ParameterType
fn clone(&self) -> ParameterType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more