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 inItem::setup
. -
peace_resources
has a dependency onItemId
, as usesTypeMap<ItemId, _>
for theStates
maps.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 ItemId
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
ItemId
,Cow<'static, str>
newtype. - Error indicating
ItemId
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 the
apply
function needs to be executed.