# `MpxjEx.Assignment`
[🔗](https://github.com/rocket4ce/mpxj_ex/blob/v0.1.0/lib/mpxj_ex/assignment.ex#L1)

The assignment of a resource to a task.

As with `MpxjEx.Task`, the common attributes are struct fields and every
attribute read from the file is in `:fields`. `:resource_unique_id` is
`nil` for work that isn't assigned to a resource.

# `t`

```elixir
@type t() :: %MpxjEx.Assignment{
  actual_work: number() | nil,
  assignment_units: float() | nil,
  cost: float() | nil,
  fields: map(),
  finish: NaiveDateTime.t() | nil,
  guid: String.t() | nil,
  notes: String.t() | nil,
  percent_work_complete: float() | nil,
  remaining_work: number() | nil,
  resource_unique_id: integer() | nil,
  start: NaiveDateTime.t() | nil,
  task_unique_id: integer() | nil,
  unique_id: integer(),
  work: number() | nil
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
