Module dnapi_rs::message

source ·
Expand description

Models for interacting with the Defined Networking API.

Structs

  • APIError represents a single error returned in an API error response.
  • CheckForUpdateResponse is the response generated for a CheckForUpdate request.
  • CheckForUpdateResponseWrapper contains a response to CheckForUpdate inside “data.”
  • DoUpdateRequest is the request sent for a DoUpdate request.
  • A server response to a DoUpdateRequest, with the updated config and key information
  • EnrollRequest is issued to the ENROLL_ENDPOINT to enroll this dnclient with a dnapi organization
  • The data included in an successful enrollment.
  • The organization data that this node is now a part of
  • RequestV1 is the version 1 DNClient request message.
  • RequestWrapper wraps a DNClient request message. It consists of a type and value, with the type string indicating how to interpret the value blob.
  • SignedResponse contains a response message and a signature to validate.
  • SignedResponseWrapper contains a response message and a signature to validate inside data.

Enums

Constants

Type Aliases

  • A type alias to a array of APIErrors. Just for parity with dnapi.