pub struct Parameter {
pub name: String,
pub value: ParameterValue,
}
Fields
name: String
value: ParameterValue
Implementations
sourceimpl Parameter
impl Parameter
pub fn get_type(&self) -> ParameterType
pub fn not_set(name: &str) -> Self
pub fn bool(name: &str, v: bool) -> Self
pub fn integer<T: Into<i64>>(name: &str, v: T) -> Self
pub fn double<T: Into<f64>>(name: &str, v: T) -> Self
pub fn string<T: Into<String>>(name: &str, v: T) -> Self
pub fn byte_array<T: Into<Vec<u8>>>(name: &str, v: T) -> Self
pub fn bool_array<T: Into<Vec<bool>>>(name: &str, v: T) -> Self
pub fn integer_array<T: Into<Vec<i64>>>(name: &str, v: T) -> Self
pub fn double_array<T: Into<Vec<f64>>>(name: &str, v: T) -> Self
pub fn string_array(name: &str, v: Vec<String>) -> Self
Trait Implementations
sourceimpl From<Parameter> for Parameter
impl From<Parameter> for Parameter
sourcefn from(v: RclParameter) -> Self
fn from(v: RclParameter) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Parameter
Auto Trait Implementations
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more