Struct anitomy::Options[][src]

pub struct Options {
    pub allowed_delimiters: Vec<char>,
    pub ignored_strings: Vec<String>,
    pub parse_episode_number: bool,
    pub parse_episode_title: bool,
    pub parse_file_extension: bool,
    pub parse_release_group: bool,
}

The options used by Anitomy to determine how to parse a filename.

Fields

Methods

impl Options
[src]

Construct a new instance of Options with the given settings.

Important traits for &'a mut R

Adds a delimiter char to the list of allowed delimiters.

Important traits for &'a mut R

Replaces the list of allowed delimiters.

Important traits for &'a mut R

Adds a string to the list of ignored strings.

Important traits for &'a mut R

Replaces the list of ignored strings.

Important traits for &'a mut R

Sets whether Anitomy should attempt to parse the episode number.

Important traits for &'a mut R

Sets whether Anitomy should attempt to parse the episode title.

Important traits for &'a mut R

Sets whether Anitomy should attempt to parse the file extension.

Important traits for &'a mut R

Sets whether Anitomy should attempt to parse the release group.

Trait Implementations

impl Debug for Options
[src]

Formats the value using the given formatter. Read more

impl Clone for Options
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Options
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Options
[src]

impl Default for Options
[src]

Constructs a new instance of Options with the Anitomy defaults.

Equivalent to:

This example is not tested
Options {
    allowed_delimiters: vec![' ', '_', '.', '&', '+', ',', '|'],
    ignored_strings: vec![],
    parse_episode_number: true,
    parse_episode_title: true,
    parse_file_extension: true,
    parse_release_group: true,
}

Auto Trait Implementations

impl Send for Options

impl Sync for Options