Enum holochain_types::app::AppRoleManifestValidated [−][src]
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
Always create a new Cell when installing this App
Fields of Create
clone_limit: u32
deferred: bool
location: DnaLocation
properties: Option<YamlProperties>
uid: Option<String>
version: Option<DnaVersionSpec>
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: u32
deferred: bool
location: DnaLocation
properties: Option<YamlProperties>
version: Option<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.
Fields of UseExisting
Try UseExisting
, and if that fails, fallback to Create
Fields of CreateIfNotExists
clone_limit: u32
deferred: bool
location: DnaLocation
properties: Option<YamlProperties>
uid: Option<String>
version: DnaVersionSpec
Disallow provisioning altogether. In this case, we expect
clone_limit > 0
: otherwise, no cells will ever be created.
Fields of Disabled
version: DnaVersionSpec
clone_limit: u32
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AppRoleManifestValidated
impl Send for AppRoleManifestValidated
impl Sync for AppRoleManifestValidated
impl Unpin for AppRoleManifestValidated
impl UnwindSafe for AppRoleManifestValidated
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
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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