pub struct Report {
    pub report_type: ReportType,
    pub search: Vec<String>,
    pub rank: String,
    pub taxon_type: TaxType,
    pub size: Option<usize>,
    pub x: Option<String>,
    pub y: Option<String>,
    pub x_opts: Option<Opts>,
    pub y_opts: Option<Opts>,
    pub category: Option<String>,
}
Expand description

The record struct to make URLs from.

Fields

report_type: ReportType

The type of the report; tree or table.

search: Vec<String>

A vector of taxon ID’s/names.

rank: String

The rank of the return type. Default from CLI is species.

taxon_type: TaxType

Taxon type: tax_tree or tax_name

size: Option<usize>

The size of the result to return

x: Option<String>

The x value

y: Option<String>

The y value. Required for Scatterplot.

x_opts: Option<Opts>

x options. Always optional.

y_opts: Option<Opts>

The y options. Always optional.

category: Option<String>

The category. Required for CategoricalHistogram.

Implementations

Constructor function for Report.

A function to construct the report URL for any kind of report.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more