[−][src]Struct holochain_core_types::dna::zome::Zome
Represents an individual "zome".
Fields
description: String
A description of this zome.
config: Config
Configuration associated with this zome. Note, this should perhaps be a more free-form serde_json::Value, "throw-errors" may not make sense for wasm, or other ribosome types.
entry_types: ZomeEntryTypes
An array of entry_types associated with this zome.
traits: ZomeTraits
An array of traits defined in this zome.
fn_declarations: ZomeFnDeclarations
An array of functions declared in this this zome.
code: DnaWasm
Validation code for this entry_type.
bridges: Vec<Bridge>
A list of bridges to other DNAs that this DNA can use or depends on.
Methods
impl Zome
[src]
pub fn empty() -> Self
[src]
Provide defaults for an individual "zome".
pub fn new(
description: &str,
config: &Config,
entry_types: &BTreeMap<EntryType, EntryTypeDef>,
fn_declarations: &[FnDeclaration],
traits: &BTreeMap<String, TraitFns>,
code: &DnaWasm
) -> Zome
[src]
description: &str,
config: &Config,
entry_types: &BTreeMap<EntryType, EntryTypeDef>,
fn_declarations: &[FnDeclaration],
traits: &BTreeMap<String, TraitFns>,
code: &DnaWasm
) -> Zome
Allow sane defaults for Zome::new()
.
pub fn get_required_bridges(&self) -> Vec<Bridge>
[src]
pub fn add_fn_declaration(
&mut self,
name: String,
inputs: Vec<FnParameter>,
outputs: Vec<FnParameter>
)
[src]
&mut self,
name: String,
inputs: Vec<FnParameter>,
outputs: Vec<FnParameter>
)
Add a function declaration to a Zome
pub fn get_function(&self, fn_name: &str) -> Option<&FnDeclaration>
[src]
Return a Function declaration from a Zome
pub fn is_fn_public(&self, fn_name: &str) -> bool
[src]
Trait Implementations
impl<'a> From<&'a Zome> for JsonString
[src]
fn from(v: &Zome) -> JsonString
[src]
impl From<Zome> for JsonString
[src]
fn from(v: Zome) -> JsonString
[src]
impl Clone for Zome
[src]
impl Eq for Zome
[src]
impl PartialEq<Zome> for Zome
[src]
impl Debug for Zome
[src]
impl<'a> TryFrom<&'a JsonString> for Zome
[src]
type Error = JsonError
The type returned in the event of a conversion error.
fn try_from(json_string: &JsonString) -> Result<Self, Self::Error>
[src]
impl TryFrom<JsonString> for Zome
[src]
type Error = JsonError
The type returned in the event of a conversion error.
fn try_from(json_string: JsonString) -> Result<Self, Self::Error>
[src]
impl StructuralPartialEq for Zome
[src]
impl Serialize for Zome
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Zome
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Zome
impl Sync for Zome
impl Unpin for Zome
impl UnwindSafe for Zome
impl RefUnwindSafe for Zome
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Clone for T where
T: Clone,
[src]
T: Clone,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,