[][src]Struct vapix::v3::parameters::ParameterDefinition

pub struct ParameterDefinition {
    pub name: String,
    pub current_value: Option<String>,
    pub security_level: Option<u32>,
    pub nice_name: Option<String>,
    pub parameter_type: Option<ParameterTypeDefinition>,
}

A parameter definition.

Fields

name: String

The name of the parameter.

current_value: Option<String>

The current value of the parameter, if any, expressed as a string.

security_level: Option<u32>

The security level of the parameter.

nice_name: Option<String>

The name to display to the user, if different from name.

parameter_type: Option<ParameterTypeDefinition>

The type of this parameter, if provided.

Implementations

impl ParameterDefinition[src]

pub fn as_bool(&self) -> Option<bool>[src]

Return this parameter as a bool. Returns None if this parameter has no current_value, has no parameter_type, has a parameter_type with a type_definition other than TypeDefinition::Bool, or if current_value is neither true_value nor false_value.

Trait Implementations

impl Debug for ParameterDefinition[src]

impl<'de> Deserialize<'de> for ParameterDefinition[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,