pub struct BookMetadata {
pub id: String,
pub title: String,
pub publish_date: String,
pub volume: String,
pub issn: String,
pub publisher: String,
pub description: String,
pub book_type: ContentType,
pub author: String,
pub length: u32,
pub date_digitized: String,
pub orig_from: String,
}Expand description
Metadata for book or individual issue of magazine.
Fields§
§id: StringID used to identify book resource
title: StringTitle of book or periodical
publish_date: StringDate issue was published
volume: StringVolume of issue
issn: StringISSN of publication
publisher: StringPublisher
description: StringDescription of publication
book_type: ContentTypeType of book
Author of the book
length: u32Number of pages
date_digitized: StringDate book was digitized
orig_from: StringSource of book
Implementations§
Source§impl BookMetadata
impl BookMetadata
Sourcepub fn get_full_title(&self) -> String
pub fn get_full_title(&self) -> String
Gets the full title of this book, including the series name if it is a magazine issue.
Trait Implementations§
Source§impl Debug for BookMetadata
impl Debug for BookMetadata
Source§impl PartialEq for BookMetadata
impl PartialEq for BookMetadata
impl Eq for BookMetadata
impl StructuralPartialEq for BookMetadata
Auto Trait Implementations§
impl Freeze for BookMetadata
impl RefUnwindSafe for BookMetadata
impl Send for BookMetadata
impl Sync for BookMetadata
impl Unpin for BookMetadata
impl UnsafeUnpin for BookMetadata
impl UnwindSafe for BookMetadata
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<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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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