Struct flowcore::model::flow_manifest::FlowManifest
source · pub struct FlowManifest { /* private fields */ }
Expand description
A flows
Manifest
describes it and describes all the Functions
it uses as well as
a list of references to libraries.
Implementations§
source§impl FlowManifest
impl FlowManifest
sourcepub fn new(metadata: MetaData) -> Self
pub fn new(metadata: MetaData) -> Self
Create a new manifest that can then be added to, and used in serialization
sourcepub fn add_function(&mut self, function: RuntimeFunction)
pub fn add_function(&mut self, function: RuntimeFunction)
Add a run-time Function to the manifest for use in serialization
sourcepub fn functions(&self) -> &Vec<RuntimeFunction>
pub fn functions(&self) -> &Vec<RuntimeFunction>
Get the list of functions in this manifest
sourcepub fn get_functions(&mut self) -> &mut Vec<RuntimeFunction>
pub fn get_functions(&mut self) -> &mut Vec<RuntimeFunction>
Get the list of functions in this manifest
sourcepub fn take_functions(self) -> Vec<RuntimeFunction>
pub fn take_functions(self) -> Vec<RuntimeFunction>
Take the vector of functions out of this manifest
sourcepub fn get_metadata(&self) -> &MetaData
pub fn get_metadata(&self) -> &MetaData
Get the metadata structure for this manifest
sourcepub fn get_lib_references(&self) -> &BTreeSet<Url>
pub fn get_lib_references(&self) -> &BTreeSet<Url>
get the list of all library references in this manifest
sourcepub fn get_context_references(&self) -> &BTreeSet<Url>
pub fn get_context_references(&self) -> &BTreeSet<Url>
get the list of all context references in this manifest
sourcepub fn set_lib_references(&mut self, lib_references: &BTreeSet<Url>)
pub fn set_lib_references(&mut self, lib_references: &BTreeSet<Url>)
set the list of all library references in this manifest
sourcepub fn set_context_references(&mut self, context_references: &BTreeSet<Url>)
pub fn set_context_references(&mut self, context_references: &BTreeSet<Url>)
set the list of all context references in this manifest
sourcepub fn add_lib_reference(&mut self, lib_reference: &Url)
pub fn add_lib_reference(&mut self, lib_reference: &Url)
Add a new library reference (the name of a library) into the manifest
sourcepub fn add_context_reference(&mut self, context_reference: &Url)
pub fn add_context_reference(&mut self, context_reference: &Url)
Add a new context reference (the name of a library) into the manifest
Trait Implementations§
source§impl Clone for FlowManifest
impl Clone for FlowManifest
source§fn clone(&self) -> FlowManifest
fn clone(&self) -> FlowManifest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FlowManifest
impl Debug for FlowManifest
source§impl<'de> Deserialize<'de> for FlowManifest
impl<'de> Deserialize<'de> for FlowManifest
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>,
source§impl Display for FlowManifest
impl Display for FlowManifest
source§impl PartialEq for FlowManifest
impl PartialEq for FlowManifest
source§fn eq(&self, other: &FlowManifest) -> bool
fn eq(&self, other: &FlowManifest) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FlowManifest
impl Serialize for FlowManifest
impl Eq for FlowManifest
impl StructuralEq for FlowManifest
impl StructuralPartialEq for FlowManifest
Auto Trait Implementations§
impl RefUnwindSafe for FlowManifest
impl Send for FlowManifest
impl Sync for FlowManifest
impl Unpin for FlowManifest
impl UnwindSafe for FlowManifest
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.