[−][src]Struct vapix::v3::parameters::ParameterDefinition
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for ParameterDefinition
impl Send for ParameterDefinition
impl Sync for ParameterDefinition
impl Unpin for ParameterDefinition
impl UnwindSafe for ParameterDefinition
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,