pub struct AudibleMetadata {Show 17 fields
pub asin: String,
pub title: String,
pub subtitle: Option<String>,
pub authors: Vec<AudibleAuthor>,
pub narrators: Vec<String>,
pub publisher: Option<String>,
pub published_year: Option<u32>,
pub description: Option<String>,
pub cover_url: Option<String>,
pub isbn: Option<String>,
pub genres: Vec<String>,
pub tags: Vec<String>,
pub series: Vec<AudibleSeries>,
pub language: Option<String>,
pub runtime_length_ms: Option<u64>,
pub rating: Option<f32>,
pub is_abridged: Option<bool>,
}Expand description
Audible metadata from API
Fields§
§asin: String§title: String§subtitle: Option<String>§narrators: Vec<String>§publisher: Option<String>§published_year: Option<u32>§description: Option<String>§cover_url: Option<String>§isbn: Option<String>§genres: Vec<String>§series: Vec<AudibleSeries>§language: Option<String>§runtime_length_ms: Option<u64>Runtime length in milliseconds
rating: Option<f32>§is_abridged: Option<bool>Implementations§
Source§impl AudibleMetadata
impl AudibleMetadata
Sourcepub fn runtime_minutes(&self) -> Option<u32>
pub fn runtime_minutes(&self) -> Option<u32>
Get runtime in minutes
Get primary author name
Get all authors joined as a string
Sourcepub fn narrators_string(&self) -> String
pub fn narrators_string(&self) -> String
Get all narrators joined as a string
Sourcepub fn primary_narrator(&self) -> Option<&str>
pub fn primary_narrator(&self) -> Option<&str>
Get primary narrator
Trait Implementations§
Source§impl Clone for AudibleMetadata
impl Clone for AudibleMetadata
Source§fn clone(&self) -> AudibleMetadata
fn clone(&self) -> AudibleMetadata
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 AudibleMetadata
impl Debug for AudibleMetadata
Source§impl<'de> Deserialize<'de> for AudibleMetadata
impl<'de> Deserialize<'de> for AudibleMetadata
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
Auto Trait Implementations§
impl Freeze for AudibleMetadata
impl RefUnwindSafe for AudibleMetadata
impl Send for AudibleMetadata
impl Sync for AudibleMetadata
impl Unpin for AudibleMetadata
impl UnwindSafe for AudibleMetadata
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> 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