Enum holochain_types::app::AppSlotManifestValidated[][src]

pub enum AppSlotManifestValidated {
    Create {
        clone_limit: u32,
        deferred: bool,
        location: DnaLocation,
        properties: Option<YamlProperties>,
        uid: Option<String>,
        version: Option<DnaVersionSpec>,
    },
    CreateClone {
        clone_limit: u32,
        deferred: bool,
        location: DnaLocation,
        properties: Option<YamlProperties>,
        version: Option<DnaVersionSpec>,
    },
    UseExisting {
        clone_limit: u32,
        deferred: bool,
        version: DnaVersionSpec,
    },
    CreateIfNotExists {
        clone_limit: u32,
        deferred: bool,
        location: DnaLocation,
        properties: Option<YamlProperties>,
        uid: Option<String>,
        version: DnaVersionSpec,
    },
    Disabled {
        version: DnaVersionSpec,
        clone_limit: u32,
    },
}
Expand description

Rules to determine if and how a Cell will be created for this Dna

Variants

Create

Always create a new Cell when installing this App

Fields of Create

clone_limit: u32deferred: boollocation: DnaLocationproperties: Option<YamlProperties>uid: Option<String>version: Option<DnaVersionSpec>
CreateClone

Always create a new Cell when installing the App, and use a unique UID to ensure a distinct DHT network

Fields of CreateClone

clone_limit: u32deferred: boollocation: DnaLocationproperties: Option<YamlProperties>version: Option<DnaVersionSpec>
UseExisting

Require that a Cell is already installed which matches the DNA version spec, and which has an Agent that’s associated with this App’s agent via DPKI. If no such Cell exists, app installation fails.

Fields of UseExisting

clone_limit: u32deferred: boolversion: DnaVersionSpec
CreateIfNotExists

Try UseExisting, and if that fails, fallback to Create

Fields of CreateIfNotExists

clone_limit: u32deferred: boollocation: DnaLocationproperties: Option<YamlProperties>uid: Option<String>version: DnaVersionSpec
Disabled

Disallow provisioning altogether. In this case, we expect clone_limit > 0: otherwise, no cells will ever be created.

Fields of Disabled

version: DnaVersionSpecclone_limit: u32

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

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

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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