Struct holochain::sweettest::SweetDnaFile [−][src]
pub struct SweetDnaFile(_);
Expand description
Helpful constructors for DnaFiles used in tests
Implementations
Create a DnaFile from a path to a *.dna bundle
Create a DnaFile from a path to a *.dna bundle, applying the specified “phenotype” overrides
Create a DnaFile from a collection of Zomes
Create a DnaFile from a collection of Zomes, with a random UID
Create a DnaFile from a collection of TestWasm
Create a DnaFile from a collection of TestWasm with a random UID
Create a DnaFile from a collection of InlineZomes (no Wasm)
Create a DnaFile from a collection of InlineZomes (no Wasm), with a random UID
pub async fn from_inline_zome(
uid: String,
zome_name: &str,
zome: InlineZome
) -> DnaResult<(DnaFile, Zome)>
pub async fn from_inline_zome(
uid: String,
zome_name: &str,
zome: InlineZome
) -> DnaResult<(DnaFile, Zome)>
Create a DnaFile from a single InlineZome (no Wasm)
pub async fn unique_from_inline_zome(
zome_name: &str,
zome: InlineZome
) -> DnaResult<(DnaFile, Zome)>
pub async fn unique_from_inline_zome(
zome_name: &str,
zome: InlineZome
) -> DnaResult<(DnaFile, Zome)>
Create a DnaFile from a single InlineZome (no Wasm) with a random UID
Methods from Deref<Target = DnaFile>
The DnaDef along with its hash
Verify that the DNA hash in the file matches the DnaDef
The bytes of the WASM zomes referenced in the Dna portion.
Fetch the Webassembly byte code for a zome.
👎 Deprecated: remove after app bundles become standard; use DnaBundle instead
remove after app bundles become standard; use DnaBundle instead
Render this dna_file as bytecode to send over the wire, or store in a file.
pub fn modify_phenotype(
&self,
uid: String,
properties: YamlProperties
) -> Result<DnaFile, DnaError>
pub fn modify_phenotype(
&self,
uid: String,
properties: YamlProperties
) -> Result<DnaFile, DnaError>
Change the “phenotype” of this DNA – the UID and properties – while leaving the “genotype” of actual DNA code intact
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for SweetDnaFile
impl Send for SweetDnaFile
impl Sync for SweetDnaFile
impl Unpin for SweetDnaFile
impl !UnwindSafe for SweetDnaFile
Blanket Implementations
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 Read more
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more