pub struct Flow {
    pub name: Name,
    pub inputs: IOSet,
    pub outputs: IOSet,
    pub process_refs: Vec<ProcessReference>,
    pub connections: Vec<Connection>,
    pub metadata: MetaData,
    pub alias: Name,
    pub id: usize,
    pub source_url: Url,
    pub route: Route,
    pub subprocesses: HashMap<Name, Process>,
    pub lib_references: HashSet<Url>,
    /* private fields */
}
Expand description

Flow defines a parent or child flow in the nested flow hierarchy

Fields

name: Name

name given to this flow

inputs: IOSet

inputs that this flow defines

outputs: IOSet

outputs that this flow defines

process_refs: Vec<ProcessReference>

Set of sub-processes referenced (used) in this flow

connections: Vec<Connection>

connections within this flow, from flow input or to flow outputs

metadata: MetaData

metadata about flow author, versions etc

alias: Name

When the same process is used multiple times within a single flow, to disambiguate between them each one must be given an alias that is used to refer to it

id: usize

flows are assigned a numeric id in the hierarchy

source_url: Url

source_url is the url of the file/resource where this flow definition was read from

route: Route

route defines the location in the hierarchy of flows where this ones resides

subprocesses: HashMap<Name, Process>

subprocesses are the loaded definition of the processes reference (used) within this flow

lib_references: HashSet<Url>

lib_references is the set of library references used in this flow

Implementations

Return a default value for a Url as part of a flow

Set the alias of this flow to the supplied Name

Get the name of any associated docs file

Get a reference to the set of inputs this flow defines

Get a mutable reference to the set of inputs this flow defines

Get a reference to the set of outputs this flow defines

Configure a flow with additional information after it is deserialized from file

Iterate over all the connections defined in the flow, and attempt to connect the source and destination, checking the types are compatible

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Return a reference to the name of the struct implementing this trait

Return a reference to the alias (also a Name type) of the struct implementing this trait

Return a reference to the Route of the struct that implements this trait

Return a mutable reference to the Route of the struct that implements this trait

Serialize this value into the given Serde serializer. Read more

Set the routes in fields of this struct based on the route of it’s parent.

Validate that a deserialized model data structure is valid for use

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.