pub struct IO { /* private fields */ }
Expand description
IO
contains information about the Input or Output of a Function
or Flow
Implementations§
source§impl IO
impl IO
sourcepub fn new<R: Into<Route>>(datatypes: Vec<DataType>, route: R) -> Self
pub fn new<R: Into<Route>>(datatypes: Vec<DataType>, route: R) -> Self
Create a new IO
with a specific datatype and at a specific Route
sourcepub fn new_named<R: Into<Route>, N: Into<Name>>(
datatypes: Vec<DataType>,
route: R,
name: N
) -> Self
pub fn new_named<R: Into<Route>, N: Into<Name>>( datatypes: Vec<DataType>, route: R, name: N ) -> Self
Create a new IO
with a specific datatype and at a specific Route
and a Name
sourcepub fn function_io(&self) -> bool
pub fn function_io(&self) -> bool
Is this IO an input or an output of a Function?
sourcepub fn set_io_type(&mut self, io_type: IOType)
pub fn set_io_type(&mut self, io_type: IOType)
Set the IO type
sourcepub fn datatypes(&self) -> &Vec<DataType>
pub fn datatypes(&self) -> &Vec<DataType>
Return a reference to the data type this IO generates or accepts
sourcepub fn set_route(&mut self, route: &Route, io_type: &IOType)
pub fn set_route(&mut self, route: &Route, io_type: &IOType)
Set the route where this IO resides in the flow hierarchy
sourcepub fn set_datatypes(&mut self, datatypes: &[DataType])
pub fn set_datatypes(&mut self, datatypes: &[DataType])
Set the datatypes of this IO
sourcepub fn get_initializer(&self) -> &Option<InputInitializer>
pub fn get_initializer(&self) -> &Option<InputInitializer>
Get a reference to the input initializer of this IO
sourcepub fn get_flow_initializer(&self) -> &Option<InputInitializer>
pub fn get_flow_initializer(&self) -> &Option<InputInitializer>
Get a reference to the flow propagated input initializer of this IO
sourcepub fn set_initializer(
&mut self,
function_initializer: Option<InputInitializer>
) -> Result<()>
pub fn set_initializer( &mut self, function_initializer: Option<InputInitializer> ) -> Result<()>
Set the input initializer of this IO
sourcepub fn set_flow_initializer(
&mut self,
flow_initializer: Option<InputInitializer>
) -> Result<()>
pub fn set_flow_initializer( &mut self, flow_initializer: Option<InputInitializer> ) -> Result<()>
Set the flow input initializer of this IO
Trait Implementations§
source§impl<'de> Deserialize<'de> for IO
impl<'de> Deserialize<'de> for IO
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
source§impl HasDataTypes for IO
impl HasDataTypes for IO
Auto Trait Implementations§
impl RefUnwindSafe for IO
impl Send for IO
impl Sync for IO
impl Unpin for IO
impl UnwindSafe for IO
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