Build the change header. # Panics Panics if no message has been set.
(self)
| 375 | /// |
| 376 | /// Panics if no message has been set. |
| 377 | pub fn build(self) -> ChangeHeader { |
| 378 | ChangeHeader { |
| 379 | message: self.message.unwrap_or_default(), |
| 380 | description: self.description, |
| 381 | timestamp: self.timestamp.unwrap_or_else(Utc::now), |
| 382 | authors: self.authors, |
| 383 | } |
| 384 | } |
| 385 | |
| 386 | /// Try to build the change header, returning an error if invalid. |
| 387 | /// |
no outgoing calls