pub struct EpubFile {
pub path: String,
pub media_type: String,
pub bytes: Vec<u8>,
}Expand description
One file of an EPUB.
Fields§
§path: StringWhere the file is in the container.
media_type: StringIts media type.
bytes: Vec<u8>Its bytes, not compressed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EpubFile
impl<'de> Deserialize<'de> for EpubFile
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 StructuralPartialEq for EpubFile
Auto Trait Implementations§
impl Freeze for EpubFile
impl RefUnwindSafe for EpubFile
impl Send for EpubFile
impl Sync for EpubFile
impl Unpin for EpubFile
impl UnsafeUnpin for EpubFile
impl UnwindSafe for EpubFile
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.