Trait holochain_zome_types::zome::inline_zome::InlineZomeT
source · pub trait InlineZomeT: Debug {
fn functions(&self) -> Vec<FunctionName> ⓘ;
fn maybe_call(
&self,
api: BoxApi,
name: &FunctionName,
input: ExternIO
) -> InlineZomeResult<Option<ExternIO>>;
fn uuid(&self) -> String;
fn get_global(&self, name: &str) -> Option<u8>;
}
Required Methods§
sourcefn functions(&self) -> Vec<FunctionName> ⓘ
fn functions(&self) -> Vec<FunctionName> ⓘ
Get the functions for this InlineZome
.
sourcefn maybe_call(
&self,
api: BoxApi,
name: &FunctionName,
input: ExternIO
) -> InlineZomeResult<Option<ExternIO>>
fn maybe_call(
&self,
api: BoxApi,
name: &FunctionName,
input: ExternIO
) -> InlineZomeResult<Option<ExternIO>>
Make a call to an inline zome function. If the function doesn’t exist, return None.
sourcefn get_global(&self, name: &str) -> Option<u8>
fn get_global(&self, name: &str) -> Option<u8>
Get a global value for this zome.