pub struct FormattingBuilder { /* private fields */ }
Expand description

Builder for Formatting.

Implementations

The “name” of the formatter.

This is used to refer to the formatter in use in error messages.

Configuration: Optional Default: the kind is used

The “kind” of formatting being performed.

This is used in the name of the attribute which uses this check.

Configuration: Required

The path to the formatter.

This may be a command that exists in PATH if absolute paths are not wanted.

Configuration: Required

A message to add when failures occur.

Projects which check formatting may have a way to fix it automatically. This is here so that those projects can mention their specific instructions.

Configuration: Optional Default: Unused if not provided.

A timeout for running the formatter.

If the formatter exceeds this timeout, it is considered to have failed.

Configuration: Optional Default: No timeout

Builds a new Formatting.

Errors

If a required field has not been initialized.

Configuration files within the repository the formatter

Configuration: Optional Default: Vec::new()

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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.

Calls U::from(self).

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

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

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.