pub struct PhoneData {
pub data_path: PathBuf,
pub version: String,
pub start_index: u32,
pub record: Vec<u8>,
pub index: Vec<u8>,
pub size: u64,
}Fields§
§data_path: PathBuf§version: String§start_index: u32§record: Vec<u8>§index: Vec<u8>§size: u64Implementations§
Source§impl PhoneData
impl PhoneData
pub fn new(data_path: Option<&str>) -> Self
pub fn get_data_path() -> String
pub async fn download_file( &self, download_url: Option<String>, silent: bool, ) -> Result<(), Error>
pub async fn query( &mut self, phone: &str, init: bool, ) -> Result<RecordData, Error>
pub async fn print_db_info(&mut self) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PhoneData
impl RefUnwindSafe for PhoneData
impl Send for PhoneData
impl Sync for PhoneData
impl Unpin for PhoneData
impl UnwindSafe for PhoneData
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