pub struct ABIos;Expand description
A struct for interacting with iOS’s Apple Books plists.
A directory containing iOS’s Apple Books plists should conform to the following structure:
[plists]
│
├── Books.plist
├── com.apple.ibooks-sync.plist
└── ...Implementations§
Source§impl ABIos
impl ABIos
Sourcepub fn extract_books<T>(path: &Path) -> Result<Vec<T>>
pub fn extract_books<T>(path: &Path) -> Result<Vec<T>>
Extracts data from the books plist and converts them into T.
§Arguments
path- The path to a directory containing iOS’s Apple Books plists.
See ABIos for more information on how the databases directory should be structured.
§Errors
Will return Err if:
- The plist cannot be found/opened.
- Any deserialization errors are encountered.
- The version of Apple Books is unsupported.
Sourcepub fn extract_annotations<T>(path: &Path) -> Result<Vec<T>>where
T: From<AnnotationRaw>,
pub fn extract_annotations<T>(path: &Path) -> Result<Vec<T>>where
T: From<AnnotationRaw>,
Extracts data from the annotations plist and converts them into T.
§Arguments
path- The path to a directory containing iOS’s Apple Books plists.
See ABIos for more information on how the databases directory should be structured.
§Errors
Will return Err if:
- The plist cannot be found/opened.
- Any deserialization errors are encountered.
- The version of Apple Books is unsupported.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ABIos
impl RefUnwindSafe for ABIos
impl Send for ABIos
impl Sync for ABIos
impl Unpin for ABIos
impl UnwindSafe for ABIos
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more