#[non_exhaustive]pub struct LoRaWanGetServiceProfileInfo {Show 19 fields
pub ul_rate: Option<i32>,
pub ul_bucket_size: Option<i32>,
pub ul_rate_policy: Option<String>,
pub dl_rate: Option<i32>,
pub dl_bucket_size: Option<i32>,
pub dl_rate_policy: Option<String>,
pub add_gw_metadata: bool,
pub dev_status_req_freq: Option<i32>,
pub report_dev_status_battery: bool,
pub report_dev_status_margin: bool,
pub dr_min: i32,
pub dr_max: i32,
pub channel_mask: Option<String>,
pub pr_allowed: bool,
pub hr_allowed: bool,
pub ra_allowed: bool,
pub nwk_geo_loc: bool,
pub target_per: i32,
pub min_gw_diversity: Option<i32>,
}
Expand description
LoRaWANGetServiceProfileInfo object.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.ul_rate: Option<i32>
The ULRate value.
ul_bucket_size: Option<i32>
The ULBucketSize value.
ul_rate_policy: Option<String>
The ULRatePolicy value.
dl_rate: Option<i32>
The DLRate value.
dl_bucket_size: Option<i32>
The DLBucketSize value.
dl_rate_policy: Option<String>
The DLRatePolicy value.
add_gw_metadata: bool
The AddGWMetaData value.
dev_status_req_freq: Option<i32>
The DevStatusReqFreq value.
report_dev_status_battery: bool
The ReportDevStatusBattery value.
report_dev_status_margin: bool
The ReportDevStatusMargin value.
dr_min: i32
The DRMin value.
dr_max: i32
The DRMax value.
channel_mask: Option<String>
The ChannelMask value.
pr_allowed: bool
The PRAllowed value that describes whether passive roaming is allowed.
hr_allowed: bool
The HRAllowed value that describes whether handover roaming is allowed.
ra_allowed: bool
The RAAllowed value that describes whether roaming activation is allowed.
nwk_geo_loc: bool
The NwkGeoLoc value.
target_per: i32
The TargetPER value.
min_gw_diversity: Option<i32>
The MinGwDiversity value.
Implementations§
Source§impl LoRaWanGetServiceProfileInfo
impl LoRaWanGetServiceProfileInfo
Sourcepub fn ul_bucket_size(&self) -> Option<i32>
pub fn ul_bucket_size(&self) -> Option<i32>
The ULBucketSize value.
Sourcepub fn ul_rate_policy(&self) -> Option<&str>
pub fn ul_rate_policy(&self) -> Option<&str>
The ULRatePolicy value.
Sourcepub fn dl_bucket_size(&self) -> Option<i32>
pub fn dl_bucket_size(&self) -> Option<i32>
The DLBucketSize value.
Sourcepub fn dl_rate_policy(&self) -> Option<&str>
pub fn dl_rate_policy(&self) -> Option<&str>
The DLRatePolicy value.
Sourcepub fn add_gw_metadata(&self) -> bool
pub fn add_gw_metadata(&self) -> bool
The AddGWMetaData value.
Sourcepub fn dev_status_req_freq(&self) -> Option<i32>
pub fn dev_status_req_freq(&self) -> Option<i32>
The DevStatusReqFreq value.
Sourcepub fn report_dev_status_battery(&self) -> bool
pub fn report_dev_status_battery(&self) -> bool
The ReportDevStatusBattery value.
Sourcepub fn report_dev_status_margin(&self) -> bool
pub fn report_dev_status_margin(&self) -> bool
The ReportDevStatusMargin value.
Sourcepub fn channel_mask(&self) -> Option<&str>
pub fn channel_mask(&self) -> Option<&str>
The ChannelMask value.
Sourcepub fn pr_allowed(&self) -> bool
pub fn pr_allowed(&self) -> bool
The PRAllowed value that describes whether passive roaming is allowed.
Sourcepub fn hr_allowed(&self) -> bool
pub fn hr_allowed(&self) -> bool
The HRAllowed value that describes whether handover roaming is allowed.
Sourcepub fn ra_allowed(&self) -> bool
pub fn ra_allowed(&self) -> bool
The RAAllowed value that describes whether roaming activation is allowed.
Sourcepub fn nwk_geo_loc(&self) -> bool
pub fn nwk_geo_loc(&self) -> bool
The NwkGeoLoc value.
Sourcepub fn target_per(&self) -> i32
pub fn target_per(&self) -> i32
The TargetPER value.
Sourcepub fn min_gw_diversity(&self) -> Option<i32>
pub fn min_gw_diversity(&self) -> Option<i32>
The MinGwDiversity value.
Source§impl LoRaWanGetServiceProfileInfo
impl LoRaWanGetServiceProfileInfo
Sourcepub fn builder() -> LoRaWanGetServiceProfileInfoBuilder
pub fn builder() -> LoRaWanGetServiceProfileInfoBuilder
Creates a new builder-style object to manufacture LoRaWanGetServiceProfileInfo
.
Trait Implementations§
Source§impl Clone for LoRaWanGetServiceProfileInfo
impl Clone for LoRaWanGetServiceProfileInfo
Source§fn clone(&self) -> LoRaWanGetServiceProfileInfo
fn clone(&self) -> LoRaWanGetServiceProfileInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LoRaWanGetServiceProfileInfo
impl Debug for LoRaWanGetServiceProfileInfo
Source§impl PartialEq for LoRaWanGetServiceProfileInfo
impl PartialEq for LoRaWanGetServiceProfileInfo
Source§fn eq(&self, other: &LoRaWanGetServiceProfileInfo) -> bool
fn eq(&self, other: &LoRaWanGetServiceProfileInfo) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for LoRaWanGetServiceProfileInfo
Auto Trait Implementations§
impl Freeze for LoRaWanGetServiceProfileInfo
impl RefUnwindSafe for LoRaWanGetServiceProfileInfo
impl Send for LoRaWanGetServiceProfileInfo
impl Sync for LoRaWanGetServiceProfileInfo
impl Unpin for LoRaWanGetServiceProfileInfo
impl UnwindSafe for LoRaWanGetServiceProfileInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);