pub struct ChannelAvailability {
pub code: Option<String>,
pub key: Option<String>,
pub name: Option<String>,
pub channels_ng: Option<Vec<i32>>,
pub channels_na: Option<Vec<i32>>,
pub channels_na_dfs: Option<Vec<i32>>,
pub channels_6e: Option<Vec<i32>>,
pub extra: Map<String, Value>,
}Expand description
Country-level regulatory channel data from stat/current-channel.
The UniFi API returns one record per country with per-band channel lists
(e.g. channels_ng, channels_na, channels_6e) rather than per-radio
rows. The typed fields cover the most common bands; the extra map
captures width-specific and AFC lists.
Fields§
§code: Option<String>ISO 3166-1 numeric country code (e.g. "840" for the US).
key: Option<String>Two-letter country key (e.g. "US").
name: Option<String>Human-readable country name.
channels_ng: Option<Vec<i32>>2.4 GHz channels.
channels_na: Option<Vec<i32>>5 GHz channels.
channels_na_dfs: Option<Vec<i32>>5 GHz DFS channels.
channels_6e: Option<Vec<i32>>6 GHz channels.
extra: Map<String, Value>Catch-all for width-specific lists, AFC data, etc.
Trait Implementations§
Source§impl Clone for ChannelAvailability
impl Clone for ChannelAvailability
Source§fn clone(&self) -> ChannelAvailability
fn clone(&self) -> ChannelAvailability
Returns a duplicate 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 ChannelAvailability
impl Debug for ChannelAvailability
Source§impl<'de> Deserialize<'de> for ChannelAvailability
impl<'de> Deserialize<'de> for ChannelAvailability
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ChannelAvailability
impl RefUnwindSafe for ChannelAvailability
impl Send for ChannelAvailability
impl Sync for ChannelAvailability
impl Unpin for ChannelAvailability
impl UnsafeUnpin for ChannelAvailability
impl UnwindSafe for ChannelAvailability
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