[go: up one dir, main page]

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

Options for controlling the formatting of the generated e-mail.

Implementations§

Creates a new set of email create options

By default, options include rename detection and binary diffs to match git format-patch.

Flag indicating whether patch numbers are included in the subject prefix.

Flag indicating whether numbers included in the subject prefix even when the patch is for a single commit (1/1).

Flag indicating whether rename or similarity detection are ignored.

Get mutable access to DiffOptions that are used for creating diffs.

Get mutable access to DiffFindOptions that are used for finding similarities within diffs.

Set the subject prefix

The default value for this is “PATCH”. If set to an empty string (“”) then only the patch numbers will be shown in the prefix. If the subject_prefix is empty and patch numbers are not being shown, the prefix will be omitted entirely.

Set the starting patch number; this cannot be 0.

The default value for this is 1.

Set the “re-roll” number.

The default value for this is 0 (no re-roll).

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.

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.