[−][src]Struct flowrstructs::lib_manifest::LibraryManifest
LibraryManifest describes the contents of a Library that can be referenced from a flow
It is provided by libraries to help load and/or find implementations of processes
Fields
metadata: MetaDatametadata about a flow with author, version and usual fields
locators: HashMap<String, ImplementationLocator>the locators map a reference to a function/implementation to the ImplementationLocator
that can be used to load it or reference it
Implementations
impl LibraryManifest[src]
pub fn new(metadata: MetaData) -> Self[src]
Create a new, empty, LibraryManifest with the provided Metadata
pub fn load(
provider: &dyn Provider,
source: &str
) -> Result<(LibraryManifest, String)>[src]
provider: &dyn Provider,
source: &str
) -> Result<(LibraryManifest, String)>
load a library from the source url, using the provider to fetch contents
pub fn add_to_manifest(
&mut self,
base_dir: &str,
wasm_abs_path: &str,
wasm_dir: &str,
function_name: &str
)[src]
&mut self,
base_dir: &str,
wasm_abs_path: &str,
wasm_dir: &str,
function_name: &str
)
Add a function's implementation to the library, specifying path to Wasm for it
Trait Implementations
impl<'de> Deserialize<'de> for LibraryManifest[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl PartialEq<LibraryManifest> for LibraryManifest[src]
pub fn eq(&self, other: &Self) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl Serialize for LibraryManifest[src]
Auto Trait Implementations
impl RefUnwindSafe for LibraryManifest[src]
impl Send for LibraryManifest[src]
impl Sync for LibraryManifest[src]
impl Unpin for LibraryManifest[src]
impl UnwindSafe for LibraryManifest[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,