pub struct DataFile {
pub service: String,
pub file_type: FileType,
pub update_type: UpdateType,
pub day: Option<Weekday>,
}Expand description
A downloadable FCC ULS data file.
Fields§
§service: StringThe service abbreviation (e.g., “amat”, “gmrs”).
file_type: FileTypeThe file type (license or application).
update_type: UpdateTypeThe update type (complete or daily).
day: Option<Weekday>For daily files, the day of week. None for complete files.
Implementations§
Source§impl DataFile
impl DataFile
Sourcepub fn complete_license(service: impl Into<String>) -> Self
pub fn complete_license(service: impl Into<String>) -> Self
Create a new complete (weekly) license file.
Sourcepub fn complete_application(service: impl Into<String>) -> Self
pub fn complete_application(service: impl Into<String>) -> Self
Create a new complete (weekly) application file.
Sourcepub fn daily_license(service: impl Into<String>, day: Weekday) -> Self
pub fn daily_license(service: impl Into<String>, day: Weekday) -> Self
Create a new daily license file.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataFile
impl<'de> Deserialize<'de> for DataFile
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
impl Eq for DataFile
impl StructuralPartialEq for DataFile
Auto Trait Implementations§
impl Freeze for DataFile
impl RefUnwindSafe for DataFile
impl Send for DataFile
impl Sync for DataFile
impl Unpin for DataFile
impl UnsafeUnpin for DataFile
impl UnwindSafe for DataFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.