SMPPEX.Pdu.mandatory_field

You're seeing just the function mandatory_field, go back to SMPPEX.Pdu module for more information.
Link to this function

mandatory_field(pdu, name)

View Source

Specs

mandatory_field(t(), atom()) :: term()

Get Pdu mandatory field. If Pdu does not have the field, nil is returned.

Examples

iex(1)> pdu = SMPPEX.Pdu.new({1, 4, 123}, %{system_id: "system_id"})
iex(2)> SMPPEX.Pdu.mandatory_field(pdu, :system_id)
"system_id"
iex(3)> SMPPEX.Pdu.mandatory_field(pdu, :short_message)
nil