pub struct BuiltComposition { /* private fields */ }Expand description
A built composition ready for execution.
Implementations§
Source§impl BuiltComposition
impl BuiltComposition
Sourcepub fn call(
&mut self,
package: &str,
function: &str,
input: &Value,
) -> Result<Value, RuntimeError>
pub fn call( &mut self, package: &str, function: &str, input: &Value, ) -> Result<Value, RuntimeError>
Call a function on a package in the composition.
Sourcepub fn types(&mut self, package: &str) -> Result<PackageMetadata, MetadataError>
pub fn types(&mut self, package: &str) -> Result<PackageMetadata, MetadataError>
Read embedded type metadata from a package in the composition.
Returns Err(MetadataError::NotFound) if the package doesn’t exist
or doesn’t export __pack_types.
Auto Trait Implementations§
impl !RefUnwindSafe for BuiltComposition
impl !UnwindSafe for BuiltComposition
impl Freeze for BuiltComposition
impl Send for BuiltComposition
impl Sync for BuiltComposition
impl Unpin for BuiltComposition
impl UnsafeUnpin for BuiltComposition
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more