Struct imdb_index::MediaEntity [−][src]
pub struct MediaEntity { /* fields omitted */ }
A media entity is a title with optional episode and rating records.
A media entity makes it convenient to deal with the complete information
of an IMDb media record. This is the default value returned by search
routines such as what the Searcher
provides, and
can also be cheaply constructed by an Index
given a
Title
or an IMDb ID.
Methods
impl MediaEntity
[src]
impl MediaEntity
pub fn title(&self) -> &Title
[src]
pub fn title(&self) -> &Title
Return a reference to the underlying Title
.
pub fn episode(&self) -> Option<&Episode>
[src]
pub fn episode(&self) -> Option<&Episode>
Return a reference to the underlying Episode
, if it exists.
pub fn rating(&self) -> Option<&Rating>
[src]
pub fn rating(&self) -> Option<&Rating>
Return a reference to the underlying Rating
, if it exists.
Trait Implementations
impl Clone for MediaEntity
[src]
impl Clone for MediaEntity
fn clone(&self) -> MediaEntity
[src]
fn clone(&self) -> MediaEntity
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for MediaEntity
[src]
impl Debug for MediaEntity
Auto Trait Implementations
impl Send for MediaEntity
impl Send for MediaEntity
impl Sync for MediaEntity
impl Sync for MediaEntity