Struct chirpstack_api::as_pb::SetDeviceStatusRequest[][src]

pub struct SetDeviceStatusRequest {
    pub dev_eui: Vec<u8>,
    pub battery: u32,
    pub margin: i32,
    pub external_power_source: bool,
    pub battery_level_unavailable: bool,
    pub battery_level: f32,
}

Fields

dev_eui: Vec<u8>

Device EUI (8 bytes).

battery: u32

Battery level (deprecated, use battery_level). 0: The end-device is connected to an external power source 1..254: The battery level, 1 being at minimum and 254 being at maximum 255: The end-device was not able to measure the battery level

margin: i32

The device margin status -32..32: The demodulation SNR ration in dB

external_power_source: bool

Device is connected to an external power source.

battery_level_unavailable: bool

Device battery status is not available.

battery_level: f32

Battery level as a percentage.

Trait Implementations

impl Clone for SetDeviceStatusRequest[src]

impl Debug for SetDeviceStatusRequest[src]

impl Default for SetDeviceStatusRequest[src]

impl Message for SetDeviceStatusRequest[src]

impl PartialEq<SetDeviceStatusRequest> for SetDeviceStatusRequest[src]

impl StructuralPartialEq for SetDeviceStatusRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

impl<T> WithSubscriber for T[src]