pub enum ParameterValue {
Int(i32),
UInt(u32),
Long(i64),
ULong(u64),
Float(f32),
Double(f64),
String(String),
Bool(bool),
VecBytes(Vec<u8>),
}
Expand description
Re-export for ParameterValue
enum
Supported parameter types with values for function calling.
Variants§
Int(i32)
i32
UInt(u32)
u32
Long(i64)
i64
ULong(u64)
i64
Float(f32)
f32
Double(f64)
f64
String(String)
String
Bool(bool)
bool
VecBytes(Vec<u8>)
Vec
Trait Implementations§
Source§impl Clone for ParameterValue
impl Clone for ParameterValue
Source§fn clone(&self) -> ParameterValue
fn clone(&self) -> ParameterValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParameterValue
impl Debug for ParameterValue
Source§impl PartialEq for ParameterValue
impl PartialEq for ParameterValue
Source§impl TryFrom<Parameter<'_>> for ParameterValue
impl TryFrom<Parameter<'_>> for ParameterValue
Source§impl TryFrom<ParameterValue> for u32
impl TryFrom<ParameterValue> for u32
impl StructuralPartialEq for ParameterValue
Auto Trait Implementations§
impl Freeze for ParameterValue
impl RefUnwindSafe for ParameterValue
impl Send for ParameterValue
impl Sync for ParameterValue
impl Unpin for ParameterValue
impl UnwindSafe for ParameterValue
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