#[non_exhaustive]
pub struct LoRaWanDeviceProfileBuilder { /* private fields */ }
Expand description

A builder for LoRaWanDeviceProfile.

Implementations§

source§

impl LoRaWanDeviceProfileBuilder

source

pub fn supports_class_b(self, input: bool) -> Self

The SupportsClassB value.

source

pub fn set_supports_class_b(self, input: Option<bool>) -> Self

The SupportsClassB value.

source

pub fn get_supports_class_b(&self) -> &Option<bool>

The SupportsClassB value.

source

pub fn class_b_timeout(self, input: i32) -> Self

The ClassBTimeout value.

source

pub fn set_class_b_timeout(self, input: Option<i32>) -> Self

The ClassBTimeout value.

source

pub fn get_class_b_timeout(&self) -> &Option<i32>

The ClassBTimeout value.

source

pub fn ping_slot_period(self, input: i32) -> Self

The PingSlotPeriod value.

source

pub fn set_ping_slot_period(self, input: Option<i32>) -> Self

The PingSlotPeriod value.

source

pub fn get_ping_slot_period(&self) -> &Option<i32>

The PingSlotPeriod value.

source

pub fn ping_slot_dr(self, input: i32) -> Self

The PingSlotDR value.

source

pub fn set_ping_slot_dr(self, input: Option<i32>) -> Self

The PingSlotDR value.

source

pub fn get_ping_slot_dr(&self) -> &Option<i32>

The PingSlotDR value.

source

pub fn ping_slot_freq(self, input: i32) -> Self

The PingSlotFreq value.

source

pub fn set_ping_slot_freq(self, input: Option<i32>) -> Self

The PingSlotFreq value.

source

pub fn get_ping_slot_freq(&self) -> &Option<i32>

The PingSlotFreq value.

source

pub fn supports_class_c(self, input: bool) -> Self

The SupportsClassC value.

source

pub fn set_supports_class_c(self, input: Option<bool>) -> Self

The SupportsClassC value.

source

pub fn get_supports_class_c(&self) -> &Option<bool>

The SupportsClassC value.

source

pub fn class_c_timeout(self, input: i32) -> Self

The ClassCTimeout value.

source

pub fn set_class_c_timeout(self, input: Option<i32>) -> Self

The ClassCTimeout value.

source

pub fn get_class_c_timeout(&self) -> &Option<i32>

The ClassCTimeout value.

source

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.

source

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.

source

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.

source

pub fn reg_params_revision(self, input: impl Into<String>) -> Self

The version of regional parameters.

source

pub fn set_reg_params_revision(self, input: Option<String>) -> Self

The version of regional parameters.

source

pub fn get_reg_params_revision(&self) -> &Option<String>

The version of regional parameters.

source

pub fn rx_delay1(self, input: i32) -> Self

The RXDelay1 value.

source

pub fn set_rx_delay1(self, input: Option<i32>) -> Self

The RXDelay1 value.

source

pub fn get_rx_delay1(&self) -> &Option<i32>

The RXDelay1 value.

source

pub fn rx_dr_offset1(self, input: i32) -> Self

The RXDROffset1 value.

source

pub fn set_rx_dr_offset1(self, input: Option<i32>) -> Self

The RXDROffset1 value.

source

pub fn get_rx_dr_offset1(&self) -> &Option<i32>

The RXDROffset1 value.

source

pub fn rx_data_rate2(self, input: i32) -> Self

The RXDataRate2 value.

source

pub fn set_rx_data_rate2(self, input: Option<i32>) -> Self

The RXDataRate2 value.

source

pub fn get_rx_data_rate2(&self) -> &Option<i32>

The RXDataRate2 value.

source

pub fn rx_freq2(self, input: i32) -> Self

The RXFreq2 value.

source

pub fn set_rx_freq2(self, input: Option<i32>) -> Self

The RXFreq2 value.

source

pub fn get_rx_freq2(&self) -> &Option<i32>

The RXFreq2 value.

source

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.

source

pub fn set_factory_preset_freqs_list(self, input: Option<Vec<i32>>) -> Self

The list of values that make up the FactoryPresetFreqs value.

source

pub fn get_factory_preset_freqs_list(&self) -> &Option<Vec<i32>>

The list of values that make up the FactoryPresetFreqs value.

source

pub fn max_eirp(self, input: i32) -> Self

The MaxEIRP value.

source

pub fn set_max_eirp(self, input: Option<i32>) -> Self

The MaxEIRP value.

source

pub fn get_max_eirp(&self) -> &Option<i32>

The MaxEIRP value.

source

pub fn max_duty_cycle(self, input: i32) -> Self

The MaxDutyCycle value. It ranges from 0 to 15.

source

pub fn set_max_duty_cycle(self, input: Option<i32>) -> Self

The MaxDutyCycle value. It ranges from 0 to 15.

source

pub fn get_max_duty_cycle(&self) -> &Option<i32>

The MaxDutyCycle value. It ranges from 0 to 15.

source

pub fn rf_region(self, input: impl Into<String>) -> Self

The frequency band (RFRegion) value.

source

pub fn set_rf_region(self, input: Option<String>) -> Self

The frequency band (RFRegion) value.

source

pub fn get_rf_region(&self) -> &Option<String>

The frequency band (RFRegion) value.

source

pub fn supports_join(self, input: bool) -> Self

The SupportsJoin value.

source

pub fn set_supports_join(self, input: Option<bool>) -> Self

The SupportsJoin value.

source

pub fn get_supports_join(&self) -> &Option<bool>

The SupportsJoin value.

source

pub fn supports32_bit_f_cnt(self, input: bool) -> Self

The Supports32BitFCnt value.

source

pub fn set_supports32_bit_f_cnt(self, input: Option<bool>) -> Self

The Supports32BitFCnt value.

source

pub fn get_supports32_bit_f_cnt(&self) -> &Option<bool>

The Supports32BitFCnt value.

source

pub fn build(self) -> LoRaWanDeviceProfile

Consumes the builder and constructs a LoRaWanDeviceProfile.

Trait Implementations§

source§

impl Clone for LoRaWanDeviceProfileBuilder

source§

fn clone(&self) -> LoRaWanDeviceProfileBuilder

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 LoRaWanDeviceProfileBuilder

source§

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

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

impl Default for LoRaWanDeviceProfileBuilder

source§

fn default() -> LoRaWanDeviceProfileBuilder

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

impl PartialEq for LoRaWanDeviceProfileBuilder

source§

fn eq(&self, other: &LoRaWanDeviceProfileBuilder) -> 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 StructuralPartialEq for LoRaWanDeviceProfileBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where 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<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where 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 T
where 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 T
where 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.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more