Crate peace_core
source ·Expand description
Low level data types for the peace automation framework.
This crate exists because:
-
peace_cfg
has a dependency onpeace_resources
forResources
, used inItemSpec::setup
. -
peace_resources
has a dependency onItemSpecId
, as usesTypeMap<ItemSpecId, _>
for theStates
maps. -
peace_resources
also depends onprogress::ProgressLimit
forOpCheckStatus
, which makes upOpCheckStatuses
.When peace#67 is implemented, the
progress
module can be moved out ofpeace_core
intopeace_cfg
.
Macros
Returns a
const AppName
validated at compile time.Returns a
const FlowId
validated at compile time.Returns a
const ItemSpecId
validated at compile time.Returns a
const Profile
validated at compile time.Structs
Name of the application that is run by end users.
Error indicating
AppName
provided is not in the correct format.Identifier or name of a process flow.
Error indicating
FlowId
provided is not in the correct format.Unique identifier for an
ItemSpecId
, Cow<'static, str>
newtype.Error indicating
ItemSpecId
provided is not in the correct format.Identifier or namespace to distinguish execution environments.
Error indicating
Profile
provided is not in the correct format.Enums
Whether an operation needs to be executed.