#[non_exhaustive]pub struct LoRaWanDeviceMetadataBuilder { /* private fields */ }Expand description
A builder for LoRaWanDeviceMetadata.
Implementations§
source§impl LoRaWanDeviceMetadataBuilder
impl LoRaWanDeviceMetadataBuilder
sourcepub fn set_dev_eui(self, input: Option<String>) -> Self
pub fn set_dev_eui(self, input: Option<String>) -> Self
The DevEUI value.
sourcepub fn get_dev_eui(&self) -> &Option<String>
pub fn get_dev_eui(&self) -> &Option<String>
The DevEUI value.
sourcepub fn set_f_port(self, input: Option<i32>) -> Self
pub fn set_f_port(self, input: Option<i32>) -> Self
The FPort value.
sourcepub fn get_f_port(&self) -> &Option<i32>
pub fn get_f_port(&self) -> &Option<i32>
The FPort value.
sourcepub fn set_data_rate(self, input: Option<i32>) -> Self
pub fn set_data_rate(self, input: Option<i32>) -> Self
The DataRate value.
sourcepub fn get_data_rate(&self) -> &Option<i32>
pub fn get_data_rate(&self) -> &Option<i32>
The DataRate value.
sourcepub fn set_frequency(self, input: Option<i32>) -> Self
pub fn set_frequency(self, input: Option<i32>) -> Self
The device's channel frequency in Hz.
sourcepub fn get_frequency(&self) -> &Option<i32>
pub fn get_frequency(&self) -> &Option<i32>
The device's channel frequency in Hz.
sourcepub fn set_timestamp(self, input: Option<String>) -> Self
pub fn set_timestamp(self, input: Option<String>) -> Self
The date and time of the metadata.
sourcepub fn get_timestamp(&self) -> &Option<String>
pub fn get_timestamp(&self) -> &Option<String>
The date and time of the metadata.
sourcepub fn gateways(self, input: LoRaWanGatewayMetadata) -> Self
pub fn gateways(self, input: LoRaWanGatewayMetadata) -> Self
Appends an item to gateways.
To override the contents of this collection use set_gateways.
Information about the gateways accessed by the device.
sourcepub fn set_gateways(self, input: Option<Vec<LoRaWanGatewayMetadata>>) -> Self
pub fn set_gateways(self, input: Option<Vec<LoRaWanGatewayMetadata>>) -> Self
Information about the gateways accessed by the device.
sourcepub fn get_gateways(&self) -> &Option<Vec<LoRaWanGatewayMetadata>>
pub fn get_gateways(&self) -> &Option<Vec<LoRaWanGatewayMetadata>>
Information about the gateways accessed by the device.
sourcepub fn build(self) -> LoRaWanDeviceMetadata
pub fn build(self) -> LoRaWanDeviceMetadata
Consumes the builder and constructs a LoRaWanDeviceMetadata.
Trait Implementations§
source§impl Clone for LoRaWanDeviceMetadataBuilder
impl Clone for LoRaWanDeviceMetadataBuilder
source§fn clone(&self) -> LoRaWanDeviceMetadataBuilder
fn clone(&self) -> LoRaWanDeviceMetadataBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for LoRaWanDeviceMetadataBuilder
impl Debug for LoRaWanDeviceMetadataBuilder
source§impl Default for LoRaWanDeviceMetadataBuilder
impl Default for LoRaWanDeviceMetadataBuilder
source§fn default() -> LoRaWanDeviceMetadataBuilder
fn default() -> LoRaWanDeviceMetadataBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for LoRaWanDeviceMetadataBuilder
impl PartialEq for LoRaWanDeviceMetadataBuilder
source§fn eq(&self, other: &LoRaWanDeviceMetadataBuilder) -> bool
fn eq(&self, other: &LoRaWanDeviceMetadataBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for LoRaWanDeviceMetadataBuilder
Auto Trait Implementations§
impl Freeze for LoRaWanDeviceMetadataBuilder
impl RefUnwindSafe for LoRaWanDeviceMetadataBuilder
impl Send for LoRaWanDeviceMetadataBuilder
impl Sync for LoRaWanDeviceMetadataBuilder
impl Unpin for LoRaWanDeviceMetadataBuilder
impl UnwindSafe for LoRaWanDeviceMetadataBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.