ComicInfo

Struct ComicInfo 

Source
pub struct ComicInfo { /* private fields */ }
Expand description

ComicInfo.xml definition, version 2.0 - spec here.

Changes from v2.0 are as follows:

Breaking change: None.

Features: The following fields have been added (getters are linked): translator, tags, story_arc_number, gtin.

These fields from 2.0 remain unchanged (getters are linked): characters, teams, locations, scan_information, story_arc, series_group, age_rating, day, main_character_or_team, review. title, series, number, count, volume, alternate_series, alternate_number, alternate_count, summary, notes, year, month, writer, penciller, inker, colorist, letterer, cover_artist, editor, publisher, imprint, genre, web, page_count, language_iso, format, black_and_white, manga, pages, and community_rating.

Implementations§

Source§

impl ComicInfo

Source

pub fn new() -> Self

Create a new ComicInfo with default values. This is equivalent to ComicInfo::default().

§Returns
  • Self - A new ComicInfo instance with default values.
§Example
use comicinfo::ComicInfo;
let comic_info = ComicInfo::new();
Source

pub fn title(&self) -> Option<String>

Get the title field.

§Returns
  • &$opt_type - A reference to the field.
Source

pub fn set_title(&mut self, title: Option<&str>) -> &mut Self

Set the title field.

§Arguments
  • title - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn series(&self) -> Option<String>

Get the series field.

§Returns
  • &$opt_type - A reference to the field.
Source

pub fn set_series(&mut self, series: Option<&str>) -> &mut Self

Set the series field.

§Arguments
  • series - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn number(&self) -> Option<String>

Get the number field.

§Returns
  • &$opt_type - A reference to the field.
Source

pub fn set_number(&mut self, number: Option<&str>) -> &mut Self

Set the number field.

§Arguments
  • number - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn count(&self) -> Option<i32>

Get the count field.

§Returns
  • &Option < i32 > - A reference to the field.
Source

pub fn set_count(&mut self, count: Option<i32>) -> &mut Self

Set the count field.

§Arguments
  • count - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn volume(&self) -> Option<i32>

Get the volume field.

§Returns
  • &Option < i32 > - A reference to the field.
Source

pub fn set_volume(&mut self, volume: Option<i32>) -> &mut Self

Set the volume field.

§Arguments
  • volume - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn alternate_series(&self) -> Option<String>

Get the alternate_series field.

§Returns
  • &$opt_type - A reference to the field.
Source

pub fn set_alternate_series( &mut self, alternate_series: Option<&str>, ) -> &mut Self

Set the alternate_series field.

§Arguments
  • alternate_series - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn alternate_number(&self) -> Option<String>

Get the alternate_number field.

§Returns
  • &$opt_type - A reference to the field.
Source

pub fn set_alternate_number( &mut self, alternate_number: Option<&str>, ) -> &mut Self

Set the alternate_number field.

§Arguments
  • alternate_number - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn alternate_count(&self) -> Option<i32>

Get the alternate_count field.

§Returns
  • &Option < i32 > - A reference to the field.
Source

pub fn set_alternate_count(&mut self, alternate_count: Option<i32>) -> &mut Self

Set the alternate_count field.

§Arguments
  • alternate_count - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn summary(&self) -> Option<String>

Get the summary field.

§Returns
  • &$opt_type - A reference to the field.
Source

pub fn set_summary(&mut self, summary: Option<&str>) -> &mut Self

Set the summary field.

§Arguments
  • summary - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn notes(&self) -> Option<String>

Get the notes field.

§Returns
  • &$opt_type - A reference to the field.
Source

pub fn set_notes(&mut self, notes: Option<&str>) -> &mut Self

Set the notes field.

§Arguments
  • notes - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn year(&self) -> Option<i32>

Get the year field.

§Returns
  • &Option < i32 > - A reference to the field.
Source

pub fn set_year(&mut self, year: Option<i32>) -> &mut Self

Set the year field.

§Arguments
  • year - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn month(&self) -> Option<i32>

Get the month field.

§Returns
  • &Option < i32 > - A reference to the field.
Source

pub fn set_month(&mut self, month: Option<i32>) -> &mut Self

Set the month field.

§Arguments
  • month - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn day(&self) -> Option<i32>

Get the day field.

§Returns
  • &Option < i32 > - A reference to the field.
Source

pub fn set_day(&mut self, day: Option<i32>) -> &mut Self

Set the day field.

§Arguments
  • day - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn writer(&self) -> Option<String>

Get the writer field as Option<String>.

§Returns
  • Option<String> - A string representation of the field.
Source

pub fn has_writer(&self, writer: &str) -> bool

Checks if the ComicInfo struct has a particular writer stored in its associated field.

If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • writer - The value to check for.
§Returns
  • bool - true if the value exists in the field, false otherwise.
Source

pub fn add_writer(&mut self, writer: &str) -> &mut Self

Adds a writer to the associated field.

If it already exists, then this function is a no-op. Existence is checked using Self::has_writer. If the field is None, it will be initialized with the provided value, e.g. Some(writer) If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • writer - The value to add.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn remove_writer(&mut self, writer: &str) -> &mut Self

Removes a writer from the associated field.

If it indeed exists, then it is removed. Existence is checked using Self::has_writer. If it doesn’t exist, then this function is a no-op. Should a removal result in an empty string, then we set the field to None. If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • writer - The value to remove.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn add_many_writers<I>(&mut self, writers: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to add multiple writers to the associated field.

§Arguments
  • writers - Any iterator over values to add.
§Returns
  • Self - The updated struct with the values added if not already present.
Source

pub fn remove_many_writers<I>(&mut self, writers: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to remove multiple writers from the associated field.

§Arguments
  • writers - Any iterator over values to remove.
§Returns
  • Self - The updated struct with the values removed if present. If all values are removed, the field becomes None.
Source

pub fn replace_writers<I>(&mut self, writers: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

Replaces all existing writer values in the associated field with the provided set of values.

This method clears the existing field (sets it to None) and then adds each value from the provided HashSet using Self::add_writer.

§Arguments
  • writers - Any iterator over the values to set the field to.
§Returns
  • Self - The updated struct with the field replaced by the new values.
Source

pub fn penciller(&self) -> Option<String>

Get the penciller field as Option<String>.

§Returns
  • Option<String> - A string representation of the field.
Source

pub fn has_penciller(&self, penciller: &str) -> bool

Checks if the ComicInfo struct has a particular penciller stored in its associated field.

If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • penciller - The value to check for.
§Returns
  • bool - true if the value exists in the field, false otherwise.
Source

pub fn add_penciller(&mut self, penciller: &str) -> &mut Self

Adds a penciller to the associated field.

If it already exists, then this function is a no-op. Existence is checked using Self::has_penciller. If the field is None, it will be initialized with the provided value, e.g. Some(penciller) If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • penciller - The value to add.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn remove_penciller(&mut self, penciller: &str) -> &mut Self

Removes a penciller from the associated field.

If it indeed exists, then it is removed. Existence is checked using Self::has_penciller. If it doesn’t exist, then this function is a no-op. Should a removal result in an empty string, then we set the field to None. If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • penciller - The value to remove.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn add_many_pencillers<I>(&mut self, pencillers: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to add multiple pencillers to the associated field.

§Arguments
  • pencillers - Any iterator over values to add.
§Returns
  • Self - The updated struct with the values added if not already present.
Source

pub fn remove_many_pencillers<I>(&mut self, pencillers: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to remove multiple pencillers from the associated field.

§Arguments
  • pencillers - Any iterator over values to remove.
§Returns
  • Self - The updated struct with the values removed if present. If all values are removed, the field becomes None.
Source

pub fn replace_pencillers<I>(&mut self, pencillers: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

Replaces all existing penciller values in the associated field with the provided set of values.

This method clears the existing field (sets it to None) and then adds each value from the provided HashSet using Self::add_penciller.

§Arguments
  • pencillers - Any iterator over the values to set the field to.
§Returns
  • Self - The updated struct with the field replaced by the new values.
Source

pub fn inker(&self) -> Option<String>

Get the inker field as Option<String>.

§Returns
  • Option<String> - A string representation of the field.
Source

pub fn has_inker(&self, inker: &str) -> bool

Checks if the ComicInfo struct has a particular inker stored in its associated field.

If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • inker - The value to check for.
§Returns
  • bool - true if the value exists in the field, false otherwise.
Source

pub fn add_inker(&mut self, inker: &str) -> &mut Self

Adds a inker to the associated field.

If it already exists, then this function is a no-op. Existence is checked using Self::has_inker. If the field is None, it will be initialized with the provided value, e.g. Some(inker) If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • inker - The value to add.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn remove_inker(&mut self, inker: &str) -> &mut Self

Removes a inker from the associated field.

If it indeed exists, then it is removed. Existence is checked using Self::has_inker. If it doesn’t exist, then this function is a no-op. Should a removal result in an empty string, then we set the field to None. If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • inker - The value to remove.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn add_many_inkers<I>(&mut self, inkers: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to add multiple inkers to the associated field.

§Arguments
  • inkers - Any iterator over values to add.
§Returns
  • Self - The updated struct with the values added if not already present.
Source

pub fn remove_many_inkers<I>(&mut self, inkers: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to remove multiple inkers from the associated field.

§Arguments
  • inkers - Any iterator over values to remove.
§Returns
  • Self - The updated struct with the values removed if present. If all values are removed, the field becomes None.
Source

pub fn replace_inkers<I>(&mut self, inkers: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

Replaces all existing inker values in the associated field with the provided set of values.

This method clears the existing field (sets it to None) and then adds each value from the provided HashSet using Self::add_inker.

§Arguments
  • inkers - Any iterator over the values to set the field to.
§Returns
  • Self - The updated struct with the field replaced by the new values.
Source

pub fn colorist(&self) -> Option<String>

Get the colorist field as Option<String>.

§Returns
  • Option<String> - A string representation of the field.
Source

pub fn has_colorist(&self, colorist: &str) -> bool

Checks if the ComicInfo struct has a particular colorist stored in its associated field.

If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • colorist - The value to check for.
§Returns
  • bool - true if the value exists in the field, false otherwise.
Source

pub fn add_colorist(&mut self, colorist: &str) -> &mut Self

Adds a colorist to the associated field.

If it already exists, then this function is a no-op. Existence is checked using Self::has_colorist. If the field is None, it will be initialized with the provided value, e.g. Some(colorist) If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • colorist - The value to add.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn remove_colorist(&mut self, colorist: &str) -> &mut Self

Removes a colorist from the associated field.

If it indeed exists, then it is removed. Existence is checked using Self::has_colorist. If it doesn’t exist, then this function is a no-op. Should a removal result in an empty string, then we set the field to None. If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • colorist - The value to remove.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn add_many_colorists<I>(&mut self, colorists: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to add multiple colorists to the associated field.

§Arguments
  • colorists - Any iterator over values to add.
§Returns
  • Self - The updated struct with the values added if not already present.
Source

pub fn remove_many_colorists<I>(&mut self, colorists: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to remove multiple colorists from the associated field.

§Arguments
  • colorists - Any iterator over values to remove.
§Returns
  • Self - The updated struct with the values removed if present. If all values are removed, the field becomes None.
Source

pub fn replace_colorists<I>(&mut self, colorists: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

Replaces all existing colorist values in the associated field with the provided set of values.

This method clears the existing field (sets it to None) and then adds each value from the provided HashSet using Self::add_colorist.

§Arguments
  • colorists - Any iterator over the values to set the field to.
§Returns
  • Self - The updated struct with the field replaced by the new values.
Source

pub fn letterer(&self) -> Option<String>

Get the letterer field as Option<String>.

§Returns
  • Option<String> - A string representation of the field.
Source

pub fn has_letterer(&self, letterer: &str) -> bool

Checks if the ComicInfo struct has a particular letterer stored in its associated field.

If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • letterer - The value to check for.
§Returns
  • bool - true if the value exists in the field, false otherwise.
Source

pub fn add_letterer(&mut self, letterer: &str) -> &mut Self

Adds a letterer to the associated field.

If it already exists, then this function is a no-op. Existence is checked using Self::has_letterer. If the field is None, it will be initialized with the provided value, e.g. Some(letterer) If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • letterer - The value to add.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn remove_letterer(&mut self, letterer: &str) -> &mut Self

Removes a letterer from the associated field.

If it indeed exists, then it is removed. Existence is checked using Self::has_letterer. If it doesn’t exist, then this function is a no-op. Should a removal result in an empty string, then we set the field to None. If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • letterer - The value to remove.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn add_many_letterers<I>(&mut self, letterers: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to add multiple letterers to the associated field.

§Arguments
  • letterers - Any iterator over values to add.
§Returns
  • Self - The updated struct with the values added if not already present.
Source

pub fn remove_many_letterers<I>(&mut self, letterers: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to remove multiple letterers from the associated field.

§Arguments
  • letterers - Any iterator over values to remove.
§Returns
  • Self - The updated struct with the values removed if present. If all values are removed, the field becomes None.
Source

pub fn replace_letterers<I>(&mut self, letterers: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

Replaces all existing letterer values in the associated field with the provided set of values.

This method clears the existing field (sets it to None) and then adds each value from the provided HashSet using Self::add_letterer.

§Arguments
  • letterers - Any iterator over the values to set the field to.
§Returns
  • Self - The updated struct with the field replaced by the new values.
Source

pub fn cover_artist(&self) -> Option<String>

Get the cover_artist field as Option<String>.

§Returns
  • Option<String> - A string representation of the field.
Source

pub fn has_cover_artist(&self, cover_artist: &str) -> bool

Checks if the ComicInfo struct has a particular cover_artist stored in its associated field.

If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • cover_artist - The value to check for.
§Returns
  • bool - true if the value exists in the field, false otherwise.
Source

pub fn add_cover_artist(&mut self, cover_artist: &str) -> &mut Self

Adds a cover_artist to the associated field.

If it already exists, then this function is a no-op. Existence is checked using Self::has_cover_artist. If the field is None, it will be initialized with the provided value, e.g. Some(cover_artist) If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • cover_artist - The value to add.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn remove_cover_artist(&mut self, cover_artist: &str) -> &mut Self

Removes a cover_artist from the associated field.

If it indeed exists, then it is removed. Existence is checked using Self::has_cover_artist. If it doesn’t exist, then this function is a no-op. Should a removal result in an empty string, then we set the field to None. If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • cover_artist - The value to remove.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn add_many_cover_artists<I>(&mut self, cover_artists: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to add multiple cover_artists to the associated field.

§Arguments
  • cover_artists - Any iterator over values to add.
§Returns
  • Self - The updated struct with the values added if not already present.
Source

pub fn remove_many_cover_artists<I>(&mut self, cover_artists: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to remove multiple cover_artists from the associated field.

§Arguments
  • cover_artists - Any iterator over values to remove.
§Returns
  • Self - The updated struct with the values removed if present. If all values are removed, the field becomes None.
Source

pub fn replace_cover_artists<I>(&mut self, cover_artists: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

Replaces all existing cover_artist values in the associated field with the provided set of values.

This method clears the existing field (sets it to None) and then adds each value from the provided HashSet using Self::add_cover_artist.

§Arguments
  • cover_artists - Any iterator over the values to set the field to.
§Returns
  • Self - The updated struct with the field replaced by the new values.
Source

pub fn editor(&self) -> Option<String>

Get the editor field as Option<String>.

§Returns
  • Option<String> - A string representation of the field.
Source

pub fn has_editor(&self, editor: &str) -> bool

Checks if the ComicInfo struct has a particular editor stored in its associated field.

If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • editor - The value to check for.
§Returns
  • bool - true if the value exists in the field, false otherwise.
Source

pub fn add_editor(&mut self, editor: &str) -> &mut Self

Adds a editor to the associated field.

If it already exists, then this function is a no-op. Existence is checked using Self::has_editor. If the field is None, it will be initialized with the provided value, e.g. Some(editor) If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • editor - The value to add.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn remove_editor(&mut self, editor: &str) -> &mut Self

Removes a editor from the associated field.

If it indeed exists, then it is removed. Existence is checked using Self::has_editor. If it doesn’t exist, then this function is a no-op. Should a removal result in an empty string, then we set the field to None. If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • editor - The value to remove.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn add_many_editors<I>(&mut self, editors: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to add multiple editors to the associated field.

§Arguments
  • editors - Any iterator over values to add.
§Returns
  • Self - The updated struct with the values added if not already present.
Source

pub fn remove_many_editors<I>(&mut self, editors: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to remove multiple editors from the associated field.

§Arguments
  • editors - Any iterator over values to remove.
§Returns
  • Self - The updated struct with the values removed if present. If all values are removed, the field becomes None.
Source

pub fn replace_editors<I>(&mut self, editors: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

Replaces all existing editor values in the associated field with the provided set of values.

This method clears the existing field (sets it to None) and then adds each value from the provided HashSet using Self::add_editor.

§Arguments
  • editors - Any iterator over the values to set the field to.
§Returns
  • Self - The updated struct with the field replaced by the new values.
Source

pub fn translator(&self) -> Option<String>

Get the translator field as Option<String>.

§Returns
  • Option<String> - A string representation of the field.
Source

pub fn has_translator(&self, translator: &str) -> bool

Checks if the ComicInfo struct has a particular translator stored in its associated field.

If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • translator - The value to check for.
§Returns
  • bool - true if the value exists in the field, false otherwise.
Source

pub fn add_translator(&mut self, translator: &str) -> &mut Self

Adds a translator to the associated field.

If it already exists, then this function is a no-op. Existence is checked using Self::has_translator. If the field is None, it will be initialized with the provided value, e.g. Some(translator) If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • translator - The value to add.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn remove_translator(&mut self, translator: &str) -> &mut Self

Removes a translator from the associated field.

If it indeed exists, then it is removed. Existence is checked using Self::has_translator. If it doesn’t exist, then this function is a no-op. Should a removal result in an empty string, then we set the field to None. If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • translator - The value to remove.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn add_many_translators<I>(&mut self, translators: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to add multiple translators to the associated field.

§Arguments
  • translators - Any iterator over values to add.
§Returns
  • Self - The updated struct with the values added if not already present.
Source

pub fn remove_many_translators<I>(&mut self, translators: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to remove multiple translators from the associated field.

§Arguments
  • translators - Any iterator over values to remove.
§Returns
  • Self - The updated struct with the values removed if present. If all values are removed, the field becomes None.
Source

pub fn replace_translators<I>(&mut self, translators: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

Replaces all existing translator values in the associated field with the provided set of values.

This method clears the existing field (sets it to None) and then adds each value from the provided HashSet using Self::add_translator.

§Arguments
  • translators - Any iterator over the values to set the field to.
§Returns
  • Self - The updated struct with the field replaced by the new values.
Source

pub fn publisher(&self) -> Option<String>

Get the publisher field.

§Returns
  • &$opt_type - A reference to the field.
Source

pub fn set_publisher(&mut self, publisher: Option<&str>) -> &mut Self

Set the publisher field.

§Arguments
  • publisher - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn imprint(&self) -> Option<String>

Get the imprint field.

§Returns
  • &$opt_type - A reference to the field.
Source

pub fn set_imprint(&mut self, imprint: Option<&str>) -> &mut Self

Set the imprint field.

§Arguments
  • imprint - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn genre(&self) -> Option<String>

Get the genre field as Option<String>.

§Returns
  • Option<String> - A string representation of the field.
Source

pub fn has_genre(&self, genre: &str) -> bool

Checks if the ComicInfo struct has a particular genre stored in its associated field.

If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • genre - The value to check for.
§Returns
  • bool - true if the value exists in the field, false otherwise.
Source

pub fn add_genre(&mut self, genre: &str) -> &mut Self

Adds a genre to the associated field.

If it already exists, then this function is a no-op. Existence is checked using Self::has_genre. If the field is None, it will be initialized with the provided value, e.g. Some(genre) If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • genre - The value to add.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn remove_genre(&mut self, genre: &str) -> &mut Self

Removes a genre from the associated field.

If it indeed exists, then it is removed. Existence is checked using Self::has_genre. If it doesn’t exist, then this function is a no-op. Should a removal result in an empty string, then we set the field to None. If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • genre - The value to remove.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn add_many_genres<I>(&mut self, genres: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to add multiple genres to the associated field.

§Arguments
  • genres - Any iterator over values to add.
§Returns
  • Self - The updated struct with the values added if not already present.
Source

pub fn remove_many_genres<I>(&mut self, genres: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to remove multiple genres from the associated field.

§Arguments
  • genres - Any iterator over values to remove.
§Returns
  • Self - The updated struct with the values removed if present. If all values are removed, the field becomes None.
Source

pub fn replace_genres<I>(&mut self, genres: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

Replaces all existing genre values in the associated field with the provided set of values.

This method clears the existing field (sets it to None) and then adds each value from the provided HashSet using Self::add_genre.

§Arguments
  • genres - Any iterator over the values to set the field to.
§Returns
  • Self - The updated struct with the field replaced by the new values.
Source

pub fn tags(&self) -> Option<String>

Get the tags field as Option<String>.

§Returns
  • Option<String> - A string representation of the field.
Source

pub fn has_tags(&self, tags: &str) -> bool

Checks if the ComicInfo struct has a particular tags stored in its associated field.

If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • tags - The value to check for.
§Returns
  • bool - true if the value exists in the field, false otherwise.
Source

pub fn add_tags(&mut self, tags: &str) -> &mut Self

Adds a tags to the associated field.

If it already exists, then this function is a no-op. Existence is checked using Self::has_tags. If the field is None, it will be initialized with the provided value, e.g. Some(tags) If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • tags - The value to add.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn remove_tags(&mut self, tags: &str) -> &mut Self

Removes a tags from the associated field.

If it indeed exists, then it is removed. Existence is checked using Self::has_tags. If it doesn’t exist, then this function is a no-op. Should a removal result in an empty string, then we set the field to None. If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • tags - The value to remove.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn add_many_tagss<I>(&mut self, tagss: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to add multiple tagss to the associated field.

§Arguments
  • tagss - Any iterator over values to add.
§Returns
  • Self - The updated struct with the values added if not already present.
Source

pub fn remove_many_tagss<I>(&mut self, tagss: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to remove multiple tagss from the associated field.

§Arguments
  • tagss - Any iterator over values to remove.
§Returns
  • Self - The updated struct with the values removed if present. If all values are removed, the field becomes None.
Source

pub fn replace_tagss<I>(&mut self, tagss: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

Replaces all existing tags values in the associated field with the provided set of values.

This method clears the existing field (sets it to None) and then adds each value from the provided HashSet using Self::add_tags.

§Arguments
  • tagss - Any iterator over the values to set the field to.
§Returns
  • Self - The updated struct with the field replaced by the new values.
Source

pub fn web(&self) -> Option<String>

Get the web field as Option<String>.

§Returns
  • Option<String> - A string representation of the field.
Source

pub fn has_web(&self, web: &str) -> bool

Checks if the ComicInfo struct has a particular web stored in its associated field.

If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • web - The value to check for.
§Returns
  • bool - true if the value exists in the field, false otherwise.
Source

pub fn add_web(&mut self, web: &str) -> &mut Self

Adds a web to the associated field.

If it already exists, then this function is a no-op. Existence is checked using Self::has_web. If the field is None, it will be initialized with the provided value, e.g. Some(web) If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • web - The value to add.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn remove_web(&mut self, web: &str) -> &mut Self

Removes a web from the associated field.

If it indeed exists, then it is removed. Existence is checked using Self::has_web. If it doesn’t exist, then this function is a no-op. Should a removal result in an empty string, then we set the field to None. If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • web - The value to remove.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn add_many_webs<I>(&mut self, webs: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to add multiple webs to the associated field.

§Arguments
  • webs - Any iterator over values to add.
§Returns
  • Self - The updated struct with the values added if not already present.
Source

pub fn remove_many_webs<I>(&mut self, webs: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to remove multiple webs from the associated field.

§Arguments
  • webs - Any iterator over values to remove.
§Returns
  • Self - The updated struct with the values removed if present. If all values are removed, the field becomes None.
Source

pub fn replace_webs<I>(&mut self, webs: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

Replaces all existing web values in the associated field with the provided set of values.

This method clears the existing field (sets it to None) and then adds each value from the provided HashSet using Self::add_web.

§Arguments
  • webs - Any iterator over the values to set the field to.
§Returns
  • Self - The updated struct with the field replaced by the new values.
Source

pub fn page_count(&self) -> Option<i32>

Get the page_count field.

§Returns
  • &Option < i32 > - A reference to the field.
Source

pub fn set_page_count(&mut self, page_count: Option<i32>) -> &mut Self

Set the page_count field.

§Arguments
  • page_count - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn language_iso(&self) -> Option<String>

Get the language_iso field.

§Returns
  • &$opt_type - A reference to the field.
Source

pub fn set_language_iso(&mut self, language_iso: Option<&str>) -> &mut Self

Set the language_iso field.

§Arguments
  • language_iso - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn format(&self) -> Option<String>

Get the format field.

§Returns
  • &$opt_type - A reference to the field.
Source

pub fn set_format(&mut self, format: Option<&str>) -> &mut Self

Set the format field.

§Arguments
  • format - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn black_and_white(&self) -> Option<YesNo>

Get the black_and_white field.

§Returns
  • &Option < YesNo > - A reference to the field.
Source

pub fn set_black_and_white( &mut self, black_and_white: Option<YesNo>, ) -> &mut Self

Set the black_and_white field.

§Arguments
  • black_and_white - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn manga(&self) -> Option<Manga>

Get the manga field.

§Returns
  • &Option < Manga > - A reference to the field.
Source

pub fn set_manga(&mut self, manga: Option<Manga>) -> &mut Self

Set the manga field.

§Arguments
  • manga - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn characters(&self) -> Option<String>

Get the characters field as Option<String>.

§Returns
  • Option<String> - A string representation of the field.
Source

pub fn has_characters(&self, characters: &str) -> bool

Checks if the ComicInfo struct has a particular characters stored in its associated field.

If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • characters - The value to check for.
§Returns
  • bool - true if the value exists in the field, false otherwise.
Source

pub fn add_characters(&mut self, characters: &str) -> &mut Self

Adds a characters to the associated field.

If it already exists, then this function is a no-op. Existence is checked using Self::has_characters. If the field is None, it will be initialized with the provided value, e.g. Some(characters) If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • characters - The value to add.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn remove_characters(&mut self, characters: &str) -> &mut Self

Removes a characters from the associated field.

If it indeed exists, then it is removed. Existence is checked using Self::has_characters. If it doesn’t exist, then this function is a no-op. Should a removal result in an empty string, then we set the field to None. If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • characters - The value to remove.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn add_many_characterss<I>(&mut self, characterss: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to add multiple characterss to the associated field.

§Arguments
  • characterss - Any iterator over values to add.
§Returns
  • Self - The updated struct with the values added if not already present.
Source

pub fn remove_many_characterss<I>(&mut self, characterss: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to remove multiple characterss from the associated field.

§Arguments
  • characterss - Any iterator over values to remove.
§Returns
  • Self - The updated struct with the values removed if present. If all values are removed, the field becomes None.
Source

pub fn replace_characterss<I>(&mut self, characterss: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

Replaces all existing characters values in the associated field with the provided set of values.

This method clears the existing field (sets it to None) and then adds each value from the provided HashSet using Self::add_characters.

§Arguments
  • characterss - Any iterator over the values to set the field to.
§Returns
  • Self - The updated struct with the field replaced by the new values.
Source

pub fn teams(&self) -> Option<String>

Get the teams field as Option<String>.

§Returns
  • Option<String> - A string representation of the field.
Source

pub fn has_teams(&self, teams: &str) -> bool

Checks if the ComicInfo struct has a particular teams stored in its associated field.

If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • teams - The value to check for.
§Returns
  • bool - true if the value exists in the field, false otherwise.
Source

pub fn add_teams(&mut self, teams: &str) -> &mut Self

Adds a teams to the associated field.

If it already exists, then this function is a no-op. Existence is checked using Self::has_teams. If the field is None, it will be initialized with the provided value, e.g. Some(teams) If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • teams - The value to add.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn remove_teams(&mut self, teams: &str) -> &mut Self

Removes a teams from the associated field.

If it indeed exists, then it is removed. Existence is checked using Self::has_teams. If it doesn’t exist, then this function is a no-op. Should a removal result in an empty string, then we set the field to None. If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • teams - The value to remove.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn add_many_teamss<I>(&mut self, teamss: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to add multiple teamss to the associated field.

§Arguments
  • teamss - Any iterator over values to add.
§Returns
  • Self - The updated struct with the values added if not already present.
Source

pub fn remove_many_teamss<I>(&mut self, teamss: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to remove multiple teamss from the associated field.

§Arguments
  • teamss - Any iterator over values to remove.
§Returns
  • Self - The updated struct with the values removed if present. If all values are removed, the field becomes None.
Source

pub fn replace_teamss<I>(&mut self, teamss: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

Replaces all existing teams values in the associated field with the provided set of values.

This method clears the existing field (sets it to None) and then adds each value from the provided HashSet using Self::add_teams.

§Arguments
  • teamss - Any iterator over the values to set the field to.
§Returns
  • Self - The updated struct with the field replaced by the new values.
Source

pub fn locations(&self) -> Option<String>

Get the locations field as Option<String>.

§Returns
  • Option<String> - A string representation of the field.
Source

pub fn has_locations(&self, locations: &str) -> bool

Checks if the ComicInfo struct has a particular locations stored in its associated field.

If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • locations - The value to check for.
§Returns
  • bool - true if the value exists in the field, false otherwise.
Source

pub fn add_locations(&mut self, locations: &str) -> &mut Self

Adds a locations to the associated field.

If it already exists, then this function is a no-op. Existence is checked using Self::has_locations. If the field is None, it will be initialized with the provided value, e.g. Some(locations) If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • locations - The value to add.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn remove_locations(&mut self, locations: &str) -> &mut Self

Removes a locations from the associated field.

If it indeed exists, then it is removed. Existence is checked using Self::has_locations. If it doesn’t exist, then this function is a no-op. Should a removal result in an empty string, then we set the field to None. If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • locations - The value to remove.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn add_many_locationss<I>(&mut self, locationss: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to add multiple locationss to the associated field.

§Arguments
  • locationss - Any iterator over values to add.
§Returns
  • Self - The updated struct with the values added if not already present.
Source

pub fn remove_many_locationss<I>(&mut self, locationss: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to remove multiple locationss from the associated field.

§Arguments
  • locationss - Any iterator over values to remove.
§Returns
  • Self - The updated struct with the values removed if present. If all values are removed, the field becomes None.
Source

pub fn replace_locationss<I>(&mut self, locationss: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

Replaces all existing locations values in the associated field with the provided set of values.

This method clears the existing field (sets it to None) and then adds each value from the provided HashSet using Self::add_locations.

§Arguments
  • locationss - Any iterator over the values to set the field to.
§Returns
  • Self - The updated struct with the field replaced by the new values.
Source

pub fn scan_information(&self) -> Option<String>

Get the scan_information field.

§Returns
  • &$opt_type - A reference to the field.
Source

pub fn set_scan_information( &mut self, scan_information: Option<&str>, ) -> &mut Self

Set the scan_information field.

§Arguments
  • scan_information - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn story_arc(&self) -> Option<String>

Get the story_arc field as Option<String>.

§Returns
  • Option<String> - A string representation of the field.
Source

pub fn has_story_arc(&self, story_arc: &str) -> bool

Checks if the ComicInfo struct has a particular story_arc stored in its associated field.

If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • story_arc - The value to check for.
§Returns
  • bool - true if the value exists in the field, false otherwise.
Source

pub fn add_story_arc(&mut self, story_arc: &str) -> &mut Self

Adds a story_arc to the associated field.

If it already exists, then this function is a no-op. Existence is checked using Self::has_story_arc. If the field is None, it will be initialized with the provided value, e.g. Some(story_arc) If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • story_arc - The value to add.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn remove_story_arc(&mut self, story_arc: &str) -> &mut Self

Removes a story_arc from the associated field.

If it indeed exists, then it is removed. Existence is checked using Self::has_story_arc. If it doesn’t exist, then this function is a no-op. Should a removal result in an empty string, then we set the field to None. If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • story_arc - The value to remove.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn add_many_story_arcs<I>(&mut self, story_arcs: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to add multiple story_arcs to the associated field.

§Arguments
  • story_arcs - Any iterator over values to add.
§Returns
  • Self - The updated struct with the values added if not already present.
Source

pub fn remove_many_story_arcs<I>(&mut self, story_arcs: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to remove multiple story_arcs from the associated field.

§Arguments
  • story_arcs - Any iterator over values to remove.
§Returns
  • Self - The updated struct with the values removed if present. If all values are removed, the field becomes None.
Source

pub fn replace_story_arcs<I>(&mut self, story_arcs: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

Replaces all existing story_arc values in the associated field with the provided set of values.

This method clears the existing field (sets it to None) and then adds each value from the provided HashSet using Self::add_story_arc.

§Arguments
  • story_arcs - Any iterator over the values to set the field to.
§Returns
  • Self - The updated struct with the field replaced by the new values.
Source

pub fn story_arc_number(&self) -> Option<String>

Get the story_arc_number field as Option<String>.

§Returns
  • Option<String> - A string representation of the field.
Source

pub fn has_story_arc_number(&self, story_arc_number: &str) -> bool

Checks if the ComicInfo struct has a particular story_arc_number stored in its associated field.

If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • story_arc_number - The value to check for.
§Returns
  • bool - true if the value exists in the field, false otherwise.
Source

pub fn add_story_arc_number(&mut self, story_arc_number: &str) -> &mut Self

Adds a story_arc_number to the associated field.

If it already exists, then this function is a no-op. Existence is checked using Self::has_story_arc_number. If the field is None, it will be initialized with the provided value, e.g. Some(story_arc_number) If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • story_arc_number - The value to add.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn remove_story_arc_number(&mut self, story_arc_number: &str) -> &mut Self

Removes a story_arc_number from the associated field.

If it indeed exists, then it is removed. Existence is checked using Self::has_story_arc_number. If it doesn’t exist, then this function is a no-op. Should a removal result in an empty string, then we set the field to None. If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • story_arc_number - The value to remove.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn add_many_story_arc_numbers<I>( &mut self, story_arc_numbers: I, ) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to add multiple story_arc_numbers to the associated field.

§Arguments
  • story_arc_numbers - Any iterator over values to add.
§Returns
  • Self - The updated struct with the values added if not already present.
Source

pub fn remove_many_story_arc_numbers<I>( &mut self, story_arc_numbers: I, ) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to remove multiple story_arc_numbers from the associated field.

§Arguments
  • story_arc_numbers - Any iterator over values to remove.
§Returns
  • Self - The updated struct with the values removed if present. If all values are removed, the field becomes None.
Source

pub fn replace_story_arc_numbers<I>( &mut self, story_arc_numbers: I, ) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

Replaces all existing story_arc_number values in the associated field with the provided set of values.

This method clears the existing field (sets it to None) and then adds each value from the provided HashSet using Self::add_story_arc_number.

§Arguments
  • story_arc_numbers - Any iterator over the values to set the field to.
§Returns
  • Self - The updated struct with the field replaced by the new values.
Source

pub fn series_group(&self) -> Option<String>

Get the series_group field as Option<String>.

§Returns
  • Option<String> - A string representation of the field.
Source

pub fn has_series_group(&self, series_group: &str) -> bool

Checks if the ComicInfo struct has a particular series_group stored in its associated field.

If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • series_group - The value to check for.
§Returns
  • bool - true if the value exists in the field, false otherwise.
Source

pub fn add_series_group(&mut self, series_group: &str) -> &mut Self

Adds a series_group to the associated field.

If it already exists, then this function is a no-op. Existence is checked using Self::has_series_group. If the field is None, it will be initialized with the provided value, e.g. Some(series_group) If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • series_group - The value to add.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn remove_series_group(&mut self, series_group: &str) -> &mut Self

Removes a series_group from the associated field.

If it indeed exists, then it is removed. Existence is checked using Self::has_series_group. If it doesn’t exist, then this function is a no-op. Should a removal result in an empty string, then we set the field to None. If the value needs to be percent-encoded (i.e. spaces replaced with %20), this is done automatically for you.

§Arguments
  • series_group - The value to remove.
§Returns
  • Self - The updated struct with the value added if not already present.
Source

pub fn add_many_series_groups<I>(&mut self, series_groups: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to add multiple series_groups to the associated field.

§Arguments
  • series_groups - Any iterator over values to add.
§Returns
  • Self - The updated struct with the values added if not already present.
Source

pub fn remove_many_series_groups<I>(&mut self, series_groups: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

A convenience method to remove multiple series_groups from the associated field.

§Arguments
  • series_groups - Any iterator over values to remove.
§Returns
  • Self - The updated struct with the values removed if present. If all values are removed, the field becomes None.
Source

pub fn replace_series_groups<I>(&mut self, series_groups: I) -> &mut Self
where I: IntoIterator, I::Item: AsRef<str>,

Replaces all existing series_group values in the associated field with the provided set of values.

This method clears the existing field (sets it to None) and then adds each value from the provided HashSet using Self::add_series_group.

§Arguments
  • series_groups - Any iterator over the values to set the field to.
§Returns
  • Self - The updated struct with the field replaced by the new values.
Source

pub fn age_rating(&self) -> Option<AgeRating>

Get the age_rating field.

§Returns
  • &Option < AgeRating > - A reference to the field.
Source

pub fn set_age_rating(&mut self, age_rating: Option<AgeRating>) -> &mut Self

Set the age_rating field.

§Arguments
  • age_rating - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn pages(&self) -> Option<ArrayOfComicPageInfo>

Get the pages field.

§Returns
  • &Option < ArrayOfComicPageInfo > - A reference to the field.
Source

pub fn set_pages(&mut self, pages: Option<ArrayOfComicPageInfo>) -> &mut Self

Set the pages field.

§Arguments
  • pages - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn community_rating(&self) -> Option<f32>

Get the community_rating field.

§Returns
  • &Option < f32 > - A reference to the field.
Source

pub fn set_community_rating( &mut self, community_rating: Option<f32>, ) -> &mut Self

Set the community_rating field.

§Arguments
  • community_rating - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn main_character_or_team(&self) -> Option<String>

Get the main_character_or_team field.

§Returns
  • &$opt_type - A reference to the field.
Source

pub fn set_main_character_or_team( &mut self, main_character_or_team: Option<&str>, ) -> &mut Self

Set the main_character_or_team field.

§Arguments
  • main_character_or_team - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn review(&self) -> Option<String>

Get the review field.

§Returns
  • &$opt_type - A reference to the field.
Source

pub fn set_review(&mut self, review: Option<&str>) -> &mut Self

Set the review field.

§Arguments
  • review - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.
Source

pub fn gtin(&self) -> Option<String>

Get the gtin field.

§Returns
  • &$opt_type - A reference to the field.
Source

pub fn set_gtin(&mut self, gtin: Option<&str>) -> &mut Self

Set the gtin field.

§Arguments
  • gtin - The value to set the field to.
§Returns
  • &mut Self - The updated struct with the field set.

Trait Implementations§

Source§

impl Clone for ComicInfo

Source§

fn clone(&self) -> ComicInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ComicInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ComicInfo

Source§

fn default() -> Self

Create a default ComicInfo with following reasonable defaults:

  • String (xs:string) fields default to None if default="", otherwise Some(..)
  • Integer (xs:int) fields default to None if default=-1, otherwise Some(..)
  • Custom types default to their specified default
§Returns
  • Self - A ComicInfo instance with default values.
§Example
use comicinfo::v1_0::ComicInfo;
let comic_info = ComicInfo::default();
Source§

impl<'de> Deserialize<'de> for ComicInfo

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for ComicInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Serialize ComicInfo to an XML string using serde_xml_rs.

Source§

impl FromStr for ComicInfo

Source§

fn from_str(xml: &str) -> Result<Self, Error>

Deserialize ComicInfo from an XML string using serde_xml_rs.

§Arguments
  • xml - A string slice containing the XML data.
§Returns
  • Result<Self, serde_xml_rs::Error> - The deserialized ComicInfo or an error.
§Example
use comicinfo::ComicInfo;
use std::str::FromStr;
let xml = r#"<ComicInfo>...</ComicInfo>"#;
if let Ok(comic_info) = ComicInfo::from_str(xml) {
  // use comic_info
}
Source§

type Err = Error

The associated error which can be returned from parsing.
Source§

impl PartialEq for ComicInfo

Source§

fn eq(&self, other: &ComicInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ComicInfo

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ComicInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,