pub enum PortData {
None,
Bool(bool),
Int(i64),
Float(f64),
String(String),
Bytes(Vec<u8>),
Json(Value),
List(Vec<PortData>),
Map(HashMap<String, PortData>),
}Expand description
Represents data that can be passed between nodes through ports
Variants§
None
No data (unit type)
Bool(bool)
Boolean value
Int(i64)
Integer value
Float(f64)
Floating point value
String(String)
String value
Bytes(Vec<u8>)
Binary data
Json(Value)
JSON value
List(Vec<PortData>)
List of port data
Map(HashMap<String, PortData>)
Map of port data
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PortData
impl<'de> Deserialize<'de> for PortData
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
impl StructuralPartialEq for PortData
Auto Trait Implementations§
impl Freeze for PortData
impl RefUnwindSafe for PortData
impl Send for PortData
impl Sync for PortData
impl Unpin for PortData
impl UnwindSafe for PortData
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