Struct radicle_git_ext::commit::trailers::Trailers
source · pub struct Trailers { /* private fields */ }
Expand description
A Git commit’s set of trailers that are left in the commit’s message.
Trailers are key/value pairs in the last paragraph of a message, not including any patches or conflicts that may be present.
Usage
To construct Trailers
, you can use Trailers::parse
or its
FromStr
implementation.
To iterate over the trailers, you can use Trailers::iter
.
To render the trailers to a String
, you can use
Trailers::to_string
or its Display
implementation (note that
it will default to using ": "
as the separator.
Examples
Add new functionality
Making code better with new functionality.
X-Signed-Off-By: Alex Sellier
X-Co-Authored-By: Fintan Halpenny
The trailers in the above example are:
X-Signed-Off-By: Alex Sellier
X-Co-Authored-By: Fintan Halpenny