pub enum AppRoleManifestValidated {
    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

Fields

clone_limit: u32
deferred: bool
location: DnaLocation
properties: Option<YamlProperties>
uid: Option<String>

Always create a new Cell when installing this App

CreateClone

Fields

clone_limit: u32
deferred: bool
location: DnaLocation
properties: Option<YamlProperties>

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

UseExisting

Fields

clone_limit: u32
deferred: bool
version: DnaVersionSpec

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.

CreateIfNotExists

Fields

clone_limit: u32
deferred: bool
location: DnaLocation
properties: Option<YamlProperties>
uid: Option<String>
version: DnaVersionSpec

Try UseExisting, and if that fails, fallback to Create

Disabled

Fields

version: DnaVersionSpec
clone_limit: u32

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

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)

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