MailSlurpAPI.RequestBuilder.decode

You're seeing just the function decode, go back to MailSlurpAPI.RequestBuilder module for more information.
Link to this function

decode(env, struct)

Specs

decode(Tesla.Env.t() | term(), false | struct() | [struct()]) ::
  {:ok, struct()} | {:ok, Tesla.Env.t()} | {:error, any()}

Handle the response for a Tesla request

Parameters

  • arg1 (Tesla.Env.t | term) - The response object
  • arg2 (:false | struct | [struct]) - The shape of the struct to deserialize into

Returns

on success {:error, term} on failure