assignment v0.2.0 Assignment.Result
Data structure returned after assignments occur
Fields
assignments
- a map of destinations to input assigned to those destinationsdestinations
- all of the destinations providedunassigned
- input we wanted to assign but that didn’t get assigned (e.g. configured not to loop)state
- allows for assignment to be continued from where it left off. This allows us to do things like ensure we round-robin fairly between desintations over multiple calls
Link to this section Summary
Link to this section Types
Link to this type
t()
t() :: %Assignment.Result{ assignments: Assignment.assignments(), destinations: [Assignment.destination()], state: {:state, map() :: any()}, unassigned: [Assignment.assignee()] }
Link to this section Functions
Link to this function
add_assignment(assignments, arg)
add_assignment(Assignment.assignments(), Assignment.assignment()) :: Assignment.assignments()