Struct dumplingh::Options [] [src]

pub struct Options {
    pub slug: RepoSlug,
    pub out_issues: Option<(String, PathBuf)>,
    pub out_pull_requests: Option<(String, PathBuf)>,
    pub out_labels: Option<(String, PathBuf)>,
    pub out_milestones: Option<(String, PathBuf)>,
    pub out_projects: Option<(String, PathBuf)>,
    pub out_comments: Option<(String, PathBuf)>,
    pub compact: bool,
    pub github_token: Option<String>,
}

Representation of the application's all configurable values.

Fields

Repository slug to export.

File to write issues to, if any.

Default: "./<slug>-issues.json".

File to write pull requests to, if any.

Default: "./<slug>-pulls.json".

File to write labels to, if any.

Default: "./<slug>-labels.json".

File to write milestones to, if any.

Default: "./<slug>-milestones.json".

File to write projects to, if any.

Default: "./<slug>-projects.json".

Directory to write comments to, if any.

Default: "./<slug>-comments/".

Whether to compact-print, as opposed to pretty-print, exported JSON.

Default: false.

GitHub OAuth2 token.

Required for: projects.

Default: None.

Methods

impl Options
[src]

[src]

Parse env-wide command-line arguments into an Options instance

Trait Implementations

impl Debug for Options
[src]

[src]

Formats the value using the given formatter.

impl Clone for Options
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for Options
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Options
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Options
[src]

impl PartialOrd for Options
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Options
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more