pub enum Arg {
Uri(WampUri),
Id(WampId),
Integer(WampInteger),
String(WampString),
Bool(WampBool),
Dict(WampDict),
List(WampList),
None,
}
Expand description
Generic enum that can hold any concrete WAMP value
Variants§
Uri(WampUri)
uri: a string URI as defined in URIs
Id(WampId)
id: an integer ID as defined in IDs
Integer(WampInteger)
integer: a non-negative integer
String(WampString)
string: a Unicode string, including the empty string
Bool(WampBool)
bool: a boolean value (true or false)
Dict(WampDict)
dict: a dictionary (map) where keys MUST be strings
List(WampList)
list: a list (array) where items can be again any of this enumeration
None
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Arg
impl<'de> Deserialize<'de> for Arg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Arg
impl RefUnwindSafe for Arg
impl Send for Arg
impl Sync for Arg
impl Unpin for Arg
impl UnwindSafe for Arg
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