Crate peace_core
source ·Expand description
Low level data types for the peace automation framework.
This crate exists because:
-
peace_cfghas a dependency onpeace_resourcesforResources, used inItemSpec::setup. -
peace_resourceshas a dependency onItemSpecId, as usesTypeMap<ItemSpecId, _>for theStatesmaps. -
peace_resourcesalso depends onprogress::ProgressLimitforOpCheckStatus, which makes upOpCheckStatuses.When peace#67 is implemented, the
progressmodule can be moved out ofpeace_coreintopeace_cfg.
Macros
- Returns a
const AppNamevalidated at compile time. - Returns a
const FlowIdvalidated at compile time. - Returns a
const ItemSpecIdvalidated at compile time. - Returns a
const Profilevalidated at compile time.
Structs
- Name of the application that is run by end users.
- Error indicating
AppNameprovided is not in the correct format. - Identifier or name of a process flow.
- Error indicating
FlowIdprovided is not in the correct format. - Unique identifier for an
ItemSpecId,Cow<'static, str>newtype. - Error indicating
ItemSpecIdprovided is not in the correct format. - Identifier or namespace to distinguish execution environments.
- Error indicating
Profileprovided is not in the correct format.
Enums
- Whether an operation needs to be executed.