pub struct FileMetadata {
pub technology: Technology,
pub cell_info: Option<String>,
pub version: Option<String>,
pub started_on: Option<String>,
pub rotated_on: Option<String>,
pub pci: Option<u16>,
pub mode: Option<String>,
pub arfcn: Option<u32>,
pub io_mode: Option<String>,
pub ssb_info: Vec<String>,
}Expand description
File metadata extracted from header comments
Fields§
§technology: TechnologyTechnology (LTE or NR)
cell_info: Option<String>Cell information (raw line)
version: Option<String>Version information
started_on: Option<String>Started timestamp
rotated_on: Option<String>Rotated timestamp
pci: Option<u16>Physical Cell ID (PCI)
mode: Option<String>Mode (TDD or FDD)
arfcn: Option<u32>Frequency (ARFCN - nr_arfcn or earfcn)
io_mode: Option<String>IO mode (“SISO” if dl_mu=1, “MIMO” otherwise)
ssb_info: Vec<String>SSB configuration lines from header comments (multiple SSBs possible)
Implementations§
Source§impl FileMetadata
impl FileMetadata
Sourcepub fn parse_from_lines(lines: &[String]) -> Self
pub fn parse_from_lines(lines: &[String]) -> Self
Parse file metadata from header lines (lines starting with #)
Sourcepub fn get_header_value(&self, key: &str) -> Option<String>
pub fn get_header_value(&self, key: &str) -> Option<String>
Get a specific header value by key
Trait Implementations§
Source§impl Clone for FileMetadata
impl Clone for FileMetadata
Source§fn clone(&self) -> FileMetadata
fn clone(&self) -> FileMetadata
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 FileMetadata
impl Debug for FileMetadata
Source§impl Default for FileMetadata
impl Default for FileMetadata
Source§fn default() -> FileMetadata
fn default() -> FileMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileMetadata
impl RefUnwindSafe for FileMetadata
impl Send for FileMetadata
impl Sync for FileMetadata
impl Unpin for FileMetadata
impl UnwindSafe for FileMetadata
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