pub struct DeviceInformation {
Show 17 fields pub drlc_capabilities: Option<DRLCCapabilities>, pub functions_implemented: Option<FunctionSetsImplemented>, pub gps_location: Option<GPSLocationType>, pub lfdi: HexBinary160, pub mf_date: TimeType, pub mf_hw_ver: String32, pub mf_id: PENType, pub mf_info: Option<String32>, pub mf_model: String32, pub mf_ser_num: String32, pub primary_power: PowerSourceType, pub secondary_power: PowerSourceType, pub supported_locale_list_link: Option<SupportedLocaleListLink>, pub sw_act_time: TimeType, pub sw_ver: String32, pub poll_rate: Option<Uint32>, pub href: Option<String>,
}
Available on crate feature di only.

Fields§

§drlc_capabilities: Option<DRLCCapabilities>§functions_implemented: Option<FunctionSetsImplemented>

Bitmap indicating the function sets used by the device as a client. 0 - Device Capability 1 - Self Device Resource 2 - End Device Resource 3 - Function Set Assignments 4 - Subscription/Notification Mechanism 5 - Response 6 - Time 7 - Device Information 8 - Power Status 9 - Network Status 10 - Log Event 11 - Configuration Resource 12 - Software Download 13 - DRLC 14 - Metering 15 - Pricing 16 - Messaging 17 - Billing 18 - Prepayment 19 - Flow Reservation 20 - DER Control

§gps_location: Option<GPSLocationType>

GPS location of this device.

§lfdi: HexBinary160

Long form device identifier. See the Security section for full details.

§mf_date: TimeType

Date/time of manufacture

§mf_hw_ver: String32

Manufacturer hardware version

§mf_id: PENType

The manufacturer’s IANA Enterprise Number.

§mf_info: Option<String32>

Manufacturer dependent information related to the manufacture of this device

§mf_model: String32

Manufacturer’s model number

§mf_ser_num: String32

Manufacturer assigned serial number

§primary_power: PowerSourceType§secondary_power: PowerSourceType§supported_locale_list_link: Option<SupportedLocaleListLink>§sw_act_time: TimeType

Activation date/time of currently running software

§sw_ver: String32

Currently running software version

§poll_rate: Option<Uint32>

The default polling rate for this function set (this resource and all resources below), in seconds. If not specified, a default of 900 seconds (15 minutes) is used. It is RECOMMENDED a client poll the resources of this function set every pollRate seconds.

§href: Option<String>

A reference to the resource address (URI). Required in a response to a GET, ignored otherwise.

Trait Implementations§

source§

impl Clone for DeviceInformation

source§

fn clone(&self) -> DeviceInformation

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DeviceInformation

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for DeviceInformation

source§

fn default() -> DeviceInformation

Returns the “default value” for a type. Read more
source§

impl PartialEq<DeviceInformation> for DeviceInformation

source§

fn eq(&self, other: &DeviceInformation) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl SEResource for DeviceInformation

source§

fn href(&self) -> Option<&str>

source§

impl Validate for DeviceInformation

source§

impl YaDeserialize for DeviceInformation

source§

fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>where Self: Sized,

source§

impl YaSerialize for DeviceInformation

source§

fn name() -> &'static strwhere Self: Sized,

source§

fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>where Self: Sized,

source§

fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>where Self: Sized,

source§

impl Eq for DeviceInformation

source§

impl StructuralEq for DeviceInformation

source§

impl StructuralPartialEq for DeviceInformation

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> SEType for Twhere T: YaSerialize + YaDeserialize + Validate + RefUnwindSafe + Send + Sync + 'static,