pub struct License {Show 19 fields
pub unique_system_identifier: i64,
pub call_sign: String,
pub licensee_name: String,
pub first_name: Option<String>,
pub middle_initial: Option<String>,
pub last_name: Option<String>,
pub status: char,
pub radio_service: String,
pub grant_date: Option<NaiveDate>,
pub expired_date: Option<NaiveDate>,
pub cancellation_date: Option<NaiveDate>,
pub frn: Option<String>,
pub street_address: Option<String>,
pub city: Option<String>,
pub state: Option<String>,
pub zip_code: Option<String>,
pub po_box: Option<String>,
pub operator_class: Option<char>,
pub previous_call_sign: Option<String>,
}Expand description
A complete license with all related information.
Fields§
§unique_system_identifier: i64Unique system identifier.
call_sign: StringCall sign.
licensee_name: StringLicensee/entity name.
first_name: Option<String>First name (if individual).
middle_initial: Option<String>Middle initial.
last_name: Option<String>Last name (if individual).
status: charLicense status (A=Active, C=Cancelled, E=Expired, etc.).
radio_service: StringRadio service code (HA, HV, ZA, etc.).
grant_date: Option<NaiveDate>Grant date.
expired_date: Option<NaiveDate>Expiration date.
cancellation_date: Option<NaiveDate>Cancellation date.
frn: Option<String>FRN (FCC Registration Number).
street_address: Option<String>Street address.
city: Option<String>City.
state: Option<String>State.
zip_code: Option<String>ZIP code.
po_box: Option<String>PO Box.
operator_class: Option<char>Operator class (for amateur).
previous_call_sign: Option<String>Previous call sign.
Implementations§
Source§impl License
impl License
Sourcepub fn display_name(&self) -> String
pub fn display_name(&self) -> String
Get the formatted name (entity name or “First Last”).
Sourcepub fn status_description(&self) -> &'static str
pub fn status_description(&self) -> &'static str
Get the status description.
Sourcepub fn operator_class_description(&self) -> Option<&'static str>
pub fn operator_class_description(&self) -> Option<&'static str>
Get the operator class description (amateur only).
Sourcepub fn get_field(&self, name: &str) -> Option<String>
pub fn get_field(&self, name: &str) -> Option<String>
Get a field value by name for dynamic output.
Sourcepub fn field_names() -> &'static [&'static str]
pub fn field_names() -> &'static [&'static str]
Get list of available field names.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for License
impl<'de> Deserialize<'de> for License
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 License
impl RefUnwindSafe for License
impl Send for License
impl Sync for License
impl Unpin for License
impl UnsafeUnpin for License
impl UnwindSafe for License
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