Struct build_details::BuildDetails[][src]

pub struct BuildDetails { /* fields omitted */ }

Code generator for build details. See the crate documentation for an example.

Methods

impl BuildDetails
[src]

Construct a BuildDetails instance with all available details marked as optional.

Construct a BuildDetails instance with no included details.

This method isn't particularly useful by itself, and will probably need customization with BuildDetails::include and BuildDetails::exclude.

Include a BuildDetail, and mark it as required.

If a detail is marked as required and isn't available at build time, the build will fail.

Include a BuildDetail, and mark it as optional.

If a detail is marked as optional and isn't available at build time, the generated value will be None.

Exclude a BuildDetail. It will not show up in the generated output.

Creates a file called path in the build's OUT_DIR directory. See the crate documentation for an example.

Writes the generated code to a [`::std::io::Write'] instead of to a file.

Trait Implementations

impl Debug for BuildDetails
[src]

Formats the value using the given formatter. Read more

impl Clone for BuildDetails
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for BuildDetails
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations