MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / build

Method build

atomic-core/src/change/header.rs:377–384  ·  view source on GitHub ↗

Build the change header. # Panics Panics if no message has been set.

(self)

Source from the content-addressed store, hash-verified

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 ///

Calls

no outgoing calls