pub struct AnnotationRaw {
pub body: String,
pub style: usize,
pub notes: Option<String>,
pub id: String,
pub book_id: String,
pub created: f64,
pub modified: f64,
pub epubcfi: String,
pub is_deleted: usize,
}
Expand description
A struct representing an annotation and its metadata in the annotations plist file.
Fields§
§body: String
§style: usize
§notes: Option<String>
§id: String
§book_id: String
§created: f64
§modified: f64
§epubcfi: String
§is_deleted: usize
Trait Implementations§
Source§impl Debug for AnnotationRaw
impl Debug for AnnotationRaw
Source§impl<'de> Deserialize<'de> for AnnotationRaw
impl<'de> Deserialize<'de> for AnnotationRaw
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
Source§impl From<AnnotationRaw> for Annotation
impl From<AnnotationRaw> for Annotation
Source§fn from(annotation: AnnotationRaw) -> Self
fn from(annotation: AnnotationRaw) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AnnotationRaw
impl RefUnwindSafe for AnnotationRaw
impl Send for AnnotationRaw
impl Sync for AnnotationRaw
impl Unpin for AnnotationRaw
impl UnwindSafe for AnnotationRaw
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> 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