pub struct AnnotationMetadata {
pub id: String,
pub book_id: String,
pub created: DateTimeUtc,
pub modified: DateTimeUtc,
pub location: String,
pub epubcfi: String,
}Expand description
A struct representing an annotation’s metadata.
This is all the data that is not directly editable by the user.
Fields§
§id: StringThe annotation’s unique id.
book_id: StringThe book id this annotation belongs to.
created: DateTimeUtcThe date the annotation was created.
modified: DateTimeUtcThe date the annotation was last modified.
location: StringA location string used for sorting annotations into their order of appearance inside their
respective book. This string is generated from the annotation’s epubcfi.
epubcfi: StringThe annotation’s raw epubcfi.
Trait Implementations§
Source§impl Clone for AnnotationMetadata
impl Clone for AnnotationMetadata
Source§fn clone(&self) -> AnnotationMetadata
fn clone(&self) -> AnnotationMetadata
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 AnnotationMetadata
impl Debug for AnnotationMetadata
Source§impl Default for AnnotationMetadata
impl Default for AnnotationMetadata
Source§fn default() -> AnnotationMetadata
fn default() -> AnnotationMetadata
Returns the “default value” for a type. Read more
Source§impl Ord for AnnotationMetadata
impl Ord for AnnotationMetadata
Source§impl PartialEq for AnnotationMetadata
impl PartialEq for AnnotationMetadata
Source§impl PartialOrd for AnnotationMetadata
impl PartialOrd for AnnotationMetadata
Source§impl Serialize for AnnotationMetadata
impl Serialize for AnnotationMetadata
impl Eq for AnnotationMetadata
Auto Trait Implementations§
impl Freeze for AnnotationMetadata
impl RefUnwindSafe for AnnotationMetadata
impl Send for AnnotationMetadata
impl Sync for AnnotationMetadata
impl Unpin for AnnotationMetadata
impl UnwindSafe for AnnotationMetadata
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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