Type Alias holochain::prelude::CoordinatorZome
source · pub type CoordinatorZome = Zome<CoordinatorZomeDef>;
Aliased Type§
struct CoordinatorZome {
pub name: ZomeName,
pub def: CoordinatorZomeDef,
}
Fields§
§name: ZomeName
§def: CoordinatorZomeDef
Implementations§
source§impl Zome<CoordinatorZomeDef>
impl Zome<CoordinatorZomeDef>
sourcepub fn erase_type(self) -> Zome<ZomeDef>
pub fn erase_type(self) -> Zome<ZomeDef>
Erase the type of Zome
because you no longer
need to know if this is an integrity or coordinator def.
sourcepub fn set_dependency(&mut self, zome_name: impl Into<ZomeName>)
pub fn set_dependency(&mut self, zome_name: impl Into<ZomeName>)
Add a dependency to this zome.
Trait Implementations§
source§impl<'arbitrary, T> Arbitrary<'arbitrary> for Zome<T>where
T: Arbitrary<'arbitrary>,
impl<'arbitrary, T> Arbitrary<'arbitrary> for Zome<T>where T: Arbitrary<'arbitrary>,
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Zome<T>, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Zome<T>, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§impl<'de, T> Deserialize<'de> for Zome<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Zome<T>where T: Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Zome<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Zome<T>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<(ZomeName, CoordinatorZomeDef)> for Zome<CoordinatorZomeDef>
impl From<(ZomeName, CoordinatorZomeDef)> for Zome<CoordinatorZomeDef>
source§fn from(pair: (ZomeName, CoordinatorZomeDef)) -> Zome<CoordinatorZomeDef>
fn from(pair: (ZomeName, CoordinatorZomeDef)) -> Zome<CoordinatorZomeDef>
Converts to this type from the input type.
source§impl<T> Ord for Zome<T>where
T: Ord,
impl<T> Ord for Zome<T>where T: Ord,
source§impl<T> PartialEq<Zome<T>> for Zome<T>where
T: PartialEq<T>,
impl<T> PartialEq<Zome<T>> for Zome<T>where T: PartialEq<T>,
source§impl<T> PartialOrd<Zome<T>> for Zome<T>where
T: PartialOrd<T>,
impl<T> PartialOrd<Zome<T>> for Zome<T>where T: PartialOrd<T>,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<T> Serialize for Zome<T>where
T: Serialize,
impl<T> Serialize for Zome<T>where T: Serialize,
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more