pub struct BandRestrictions { /* private fields */ }Implementations§
Source§impl BandRestrictions
impl BandRestrictions
pub fn none() -> Self
pub fn with_license_restrictions( self, license_restrictions: Vec<LicenseKey>, ) -> Self
pub fn with_usage_restrictions( self, usage_restrictions: Vec<UsageRestriction>, ) -> Self
pub fn with_power_restriction(self, power_restriction: PowerRestriction) -> Self
pub fn with_bandwidth_restriction( self, max_bandwidth: BandwidthRestriction, ) -> Self
pub fn is_unrestricted(&self) -> bool
pub fn license_restrictions(&self) -> impl Iterator<Item = &LicenseKey>
pub fn usage_restrictions(&self) -> impl Iterator<Item = &UsageRestriction>
pub fn power_restriction(&self) -> Option<&PowerRestriction>
pub fn bandwidth_restriction(&self) -> Option<&BandwidthRestriction>
Trait Implementations§
Source§impl Clone for BandRestrictions
impl Clone for BandRestrictions
Source§fn clone(&self) -> BandRestrictions
fn clone(&self) -> BandRestrictions
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 BandRestrictions
impl Debug for BandRestrictions
Source§impl Default for BandRestrictions
impl Default for BandRestrictions
Source§fn default() -> BandRestrictions
fn default() -> BandRestrictions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BandRestrictions
impl<'de> Deserialize<'de> for BandRestrictions
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 PartialEq for BandRestrictions
impl PartialEq for BandRestrictions
Source§impl Serialize for BandRestrictions
impl Serialize for BandRestrictions
Source§impl ToMarkdownWith for BandRestrictions
impl ToMarkdownWith for BandRestrictions
type Context = (FrequencyRange, Table)
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 BandRestrictions
Auto Trait Implementations§
impl Freeze for BandRestrictions
impl RefUnwindSafe for BandRestrictions
impl Send for BandRestrictions
impl Sync for BandRestrictions
impl Unpin for BandRestrictions
impl UnsafeUnpin for BandRestrictions
impl UnwindSafe for BandRestrictions
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