View Source Onvif.Devices.Schemas.NTP (Onvif v0.5.0)

Schema for the NTP configuration to be used with SetNTP and GetNTP operations.

Summary

Types

t()

@type t() :: %Onvif.Devices.Schemas.NTP{
  from_dhcp: term(),
  ntp_from_dhcp: term(),
  ntp_manual: term()
}

Functions

changeset(module, attrs)

ntp_data_changeset(module, attrs)

parse(doc)

parse_ntp_data(doc)

to_json(schema)

@spec to_json(%Onvif.Devices.Schemas.NTP{
  from_dhcp: term(),
  ntp_from_dhcp: term(),
  ntp_manual: term()
}) ::
  {:error,
   %{
     :__exception__ => any(),
     :__struct__ => Jason.EncodeError | Protocol.UndefinedError,
     optional(atom()) => any()
   }}
  | {:ok, binary()}

to_struct(parsed)