pub struct BandPlan { /* private fields */ }Implementations§
Source§impl BandPlan
impl BandPlan
pub fn new<S: Into<String>>(maintainer: Agency, region: Region, name: S) -> Self
pub fn with_regulator(self, regulator: Agency) -> Self
pub fn in_country(self, country: CountryCode) -> Self
pub fn in_countries(self, countries: &[CountryCode]) -> Self
pub fn with_licenses(self, licenses: HashMap<LicenseKey, LicenseClass>) -> Self
pub fn with_license_list(self, licenses: Vec<(DisplayName, bool)>) -> Self
pub fn with_bands(self, bands: HashMap<FrequencyAllocation, PlanBand>) -> Self
pub fn with_bands_list(self, bands: Vec<PlanBand>) -> Self
pub fn with_default_max_power(self, default_max_power: Power) -> Self
pub fn with_notes(self, notes: Vec<String>) -> Self
pub fn name(&self) -> &str
pub fn band(&self, itu: &FrequencyAllocation) -> Option<&PlanBand>
pub fn maintaining_agency(&self) -> &Agency
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BandPlan
impl<'de> Deserialize<'de> for BandPlan
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
Source§impl ToMarkdownWith for BandPlan
impl ToMarkdownWith for BandPlan
type Context = Vec<FrequencyAllocation>
fn write_markdown_with<W: Write>( &self, writer: &mut W, context: Self::Context, ) -> Result<(), MarkdownError>
fn to_markdown_string_with( &self, context: Self::Context, ) -> Result<String, MarkdownError>
impl StructuralPartialEq for BandPlan
Auto Trait Implementations§
impl Freeze for BandPlan
impl RefUnwindSafe for BandPlan
impl Send for BandPlan
impl Sync for BandPlan
impl Unpin for BandPlan
impl UnsafeUnpin for BandPlan
impl UnwindSafe for BandPlan
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