#[non_exhaustive]pub struct LoRaWanDeviceProfileBuilder { /* private fields */ }
Expand description
A builder for LoRaWanDeviceProfile
.
Implementations§
source§impl LoRaWanDeviceProfileBuilder
impl LoRaWanDeviceProfileBuilder
sourcepub fn supports_class_b(self, input: bool) -> Self
pub fn supports_class_b(self, input: bool) -> Self
The SupportsClassB value.
sourcepub fn set_supports_class_b(self, input: Option<bool>) -> Self
pub fn set_supports_class_b(self, input: Option<bool>) -> Self
The SupportsClassB value.
sourcepub fn get_supports_class_b(&self) -> &Option<bool>
pub fn get_supports_class_b(&self) -> &Option<bool>
The SupportsClassB value.
sourcepub fn class_b_timeout(self, input: i32) -> Self
pub fn class_b_timeout(self, input: i32) -> Self
The ClassBTimeout value.
sourcepub fn set_class_b_timeout(self, input: Option<i32>) -> Self
pub fn set_class_b_timeout(self, input: Option<i32>) -> Self
The ClassBTimeout value.
sourcepub fn get_class_b_timeout(&self) -> &Option<i32>
pub fn get_class_b_timeout(&self) -> &Option<i32>
The ClassBTimeout value.
sourcepub fn ping_slot_period(self, input: i32) -> Self
pub fn ping_slot_period(self, input: i32) -> Self
The PingSlotPeriod value.
sourcepub fn set_ping_slot_period(self, input: Option<i32>) -> Self
pub fn set_ping_slot_period(self, input: Option<i32>) -> Self
The PingSlotPeriod value.
sourcepub fn get_ping_slot_period(&self) -> &Option<i32>
pub fn get_ping_slot_period(&self) -> &Option<i32>
The PingSlotPeriod value.
sourcepub fn ping_slot_dr(self, input: i32) -> Self
pub fn ping_slot_dr(self, input: i32) -> Self
The PingSlotDR value.
sourcepub fn set_ping_slot_dr(self, input: Option<i32>) -> Self
pub fn set_ping_slot_dr(self, input: Option<i32>) -> Self
The PingSlotDR value.
sourcepub fn get_ping_slot_dr(&self) -> &Option<i32>
pub fn get_ping_slot_dr(&self) -> &Option<i32>
The PingSlotDR value.
sourcepub fn ping_slot_freq(self, input: i32) -> Self
pub fn ping_slot_freq(self, input: i32) -> Self
The PingSlotFreq value.
sourcepub fn set_ping_slot_freq(self, input: Option<i32>) -> Self
pub fn set_ping_slot_freq(self, input: Option<i32>) -> Self
The PingSlotFreq value.
sourcepub fn get_ping_slot_freq(&self) -> &Option<i32>
pub fn get_ping_slot_freq(&self) -> &Option<i32>
The PingSlotFreq value.
sourcepub fn supports_class_c(self, input: bool) -> Self
pub fn supports_class_c(self, input: bool) -> Self
The SupportsClassC value.
sourcepub fn set_supports_class_c(self, input: Option<bool>) -> Self
pub fn set_supports_class_c(self, input: Option<bool>) -> Self
The SupportsClassC value.
sourcepub fn get_supports_class_c(&self) -> &Option<bool>
pub fn get_supports_class_c(&self) -> &Option<bool>
The SupportsClassC value.
sourcepub fn class_c_timeout(self, input: i32) -> Self
pub fn class_c_timeout(self, input: i32) -> Self
The ClassCTimeout value.
sourcepub fn set_class_c_timeout(self, input: Option<i32>) -> Self
pub fn set_class_c_timeout(self, input: Option<i32>) -> Self
The ClassCTimeout value.
sourcepub fn get_class_c_timeout(&self) -> &Option<i32>
pub fn get_class_c_timeout(&self) -> &Option<i32>
The ClassCTimeout value.
sourcepub fn mac_version(self, input: impl Into<String>) -> Self
pub fn mac_version(self, input: impl Into<String>) -> Self
The MAC version (such as OTAA 1.1 or OTAA 1.0.3) to use with this device profile.
sourcepub fn set_mac_version(self, input: Option<String>) -> Self
pub fn set_mac_version(self, input: Option<String>) -> Self
The MAC version (such as OTAA 1.1 or OTAA 1.0.3) to use with this device profile.
sourcepub fn get_mac_version(&self) -> &Option<String>
pub fn get_mac_version(&self) -> &Option<String>
The MAC version (such as OTAA 1.1 or OTAA 1.0.3) to use with this device profile.
sourcepub fn reg_params_revision(self, input: impl Into<String>) -> Self
pub fn reg_params_revision(self, input: impl Into<String>) -> Self
The version of regional parameters.
sourcepub fn set_reg_params_revision(self, input: Option<String>) -> Self
pub fn set_reg_params_revision(self, input: Option<String>) -> Self
The version of regional parameters.
sourcepub fn get_reg_params_revision(&self) -> &Option<String>
pub fn get_reg_params_revision(&self) -> &Option<String>
The version of regional parameters.
sourcepub fn set_rx_delay1(self, input: Option<i32>) -> Self
pub fn set_rx_delay1(self, input: Option<i32>) -> Self
The RXDelay1 value.
sourcepub fn get_rx_delay1(&self) -> &Option<i32>
pub fn get_rx_delay1(&self) -> &Option<i32>
The RXDelay1 value.
sourcepub fn rx_dr_offset1(self, input: i32) -> Self
pub fn rx_dr_offset1(self, input: i32) -> Self
The RXDROffset1 value.
sourcepub fn set_rx_dr_offset1(self, input: Option<i32>) -> Self
pub fn set_rx_dr_offset1(self, input: Option<i32>) -> Self
The RXDROffset1 value.
sourcepub fn get_rx_dr_offset1(&self) -> &Option<i32>
pub fn get_rx_dr_offset1(&self) -> &Option<i32>
The RXDROffset1 value.
sourcepub fn rx_data_rate2(self, input: i32) -> Self
pub fn rx_data_rate2(self, input: i32) -> Self
The RXDataRate2 value.
sourcepub fn set_rx_data_rate2(self, input: Option<i32>) -> Self
pub fn set_rx_data_rate2(self, input: Option<i32>) -> Self
The RXDataRate2 value.
sourcepub fn get_rx_data_rate2(&self) -> &Option<i32>
pub fn get_rx_data_rate2(&self) -> &Option<i32>
The RXDataRate2 value.
sourcepub fn set_rx_freq2(self, input: Option<i32>) -> Self
pub fn set_rx_freq2(self, input: Option<i32>) -> Self
The RXFreq2 value.
sourcepub fn get_rx_freq2(&self) -> &Option<i32>
pub fn get_rx_freq2(&self) -> &Option<i32>
The RXFreq2 value.
sourcepub fn factory_preset_freqs_list(self, input: i32) -> Self
pub fn factory_preset_freqs_list(self, input: i32) -> Self
Appends an item to factory_preset_freqs_list
.
To override the contents of this collection use set_factory_preset_freqs_list
.
The list of values that make up the FactoryPresetFreqs value.
sourcepub fn set_factory_preset_freqs_list(self, input: Option<Vec<i32>>) -> Self
pub fn set_factory_preset_freqs_list(self, input: Option<Vec<i32>>) -> Self
The list of values that make up the FactoryPresetFreqs value.
sourcepub fn get_factory_preset_freqs_list(&self) -> &Option<Vec<i32>>
pub fn get_factory_preset_freqs_list(&self) -> &Option<Vec<i32>>
The list of values that make up the FactoryPresetFreqs value.
sourcepub fn set_max_eirp(self, input: Option<i32>) -> Self
pub fn set_max_eirp(self, input: Option<i32>) -> Self
The MaxEIRP value.
sourcepub fn get_max_eirp(&self) -> &Option<i32>
pub fn get_max_eirp(&self) -> &Option<i32>
The MaxEIRP value.
sourcepub fn max_duty_cycle(self, input: i32) -> Self
pub fn max_duty_cycle(self, input: i32) -> Self
The MaxDutyCycle value.
sourcepub fn set_max_duty_cycle(self, input: Option<i32>) -> Self
pub fn set_max_duty_cycle(self, input: Option<i32>) -> Self
The MaxDutyCycle value.
sourcepub fn get_max_duty_cycle(&self) -> &Option<i32>
pub fn get_max_duty_cycle(&self) -> &Option<i32>
The MaxDutyCycle value.
sourcepub fn set_rf_region(self, input: Option<String>) -> Self
pub fn set_rf_region(self, input: Option<String>) -> Self
The frequency band (RFRegion) value.
sourcepub fn get_rf_region(&self) -> &Option<String>
pub fn get_rf_region(&self) -> &Option<String>
The frequency band (RFRegion) value.
sourcepub fn supports_join(self, input: bool) -> Self
pub fn supports_join(self, input: bool) -> Self
The SupportsJoin value.
sourcepub fn set_supports_join(self, input: Option<bool>) -> Self
pub fn set_supports_join(self, input: Option<bool>) -> Self
The SupportsJoin value.
sourcepub fn get_supports_join(&self) -> &Option<bool>
pub fn get_supports_join(&self) -> &Option<bool>
The SupportsJoin value.
sourcepub fn supports32_bit_f_cnt(self, input: bool) -> Self
pub fn supports32_bit_f_cnt(self, input: bool) -> Self
The Supports32BitFCnt value.
sourcepub fn set_supports32_bit_f_cnt(self, input: Option<bool>) -> Self
pub fn set_supports32_bit_f_cnt(self, input: Option<bool>) -> Self
The Supports32BitFCnt value.
sourcepub fn get_supports32_bit_f_cnt(&self) -> &Option<bool>
pub fn get_supports32_bit_f_cnt(&self) -> &Option<bool>
The Supports32BitFCnt value.
sourcepub fn build(self) -> LoRaWanDeviceProfile
pub fn build(self) -> LoRaWanDeviceProfile
Consumes the builder and constructs a LoRaWanDeviceProfile
.
Trait Implementations§
source§impl Clone for LoRaWanDeviceProfileBuilder
impl Clone for LoRaWanDeviceProfileBuilder
source§fn clone(&self) -> LoRaWanDeviceProfileBuilder
fn clone(&self) -> LoRaWanDeviceProfileBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LoRaWanDeviceProfileBuilder
impl Debug for LoRaWanDeviceProfileBuilder
source§impl Default for LoRaWanDeviceProfileBuilder
impl Default for LoRaWanDeviceProfileBuilder
source§fn default() -> LoRaWanDeviceProfileBuilder
fn default() -> LoRaWanDeviceProfileBuilder
source§impl PartialEq for LoRaWanDeviceProfileBuilder
impl PartialEq for LoRaWanDeviceProfileBuilder
source§fn eq(&self, other: &LoRaWanDeviceProfileBuilder) -> bool
fn eq(&self, other: &LoRaWanDeviceProfileBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.