Struct mal::list::manga::MangaEntry
[−]
[src]
pub struct MangaEntry { pub series_info: MangaInfo, pub last_updated_time: DateTime<Utc>, pub values: MangaValues, }
Contains information about a manga series on a user's list.
Fields
series_info: MangaInfo
The general series information.
last_updated_time: DateTime<Utc>
The last time the series was updated.
values: MangaValues
Contains values that can be set / updated on a user's list.
Methods
impl MangaEntry
[src]
pub fn new(info: MangaInfo) -> MangaEntry
[src]
Creates a new MangaEntry
instance with MangaInfo
obtained from MAL
.
Examples
use mal::MAL; use mal::list::manga::MangaEntry; // Create a new MAL instance let mal = MAL::new("username", "password"); // Search for Bleach on MAL let mut results = mal.manga_list().search_for("Bleach").unwrap(); // Select the first result let bleach_info = results.swap_remove(0); // Create a new MangaEntry that represents Bleach with default values let entry = MangaEntry::new(bleach_info);
Trait Implementations
impl Debug for MangaEntry
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for MangaEntry
[src]
fn clone(&self) -> MangaEntry
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more