pub struct GeneratorId(pub &'static str);Expand description
A generator’s stable identity, stamped onto every GeneratedCandidate
it produces and used to label a failed generate() call in
EnsembleOutput::generator_errors. A string newtype rather than an
enum: PR 1 only populates 2 of the eventual 6 named generators, and an
enum with unbuilt variants would force a premature #[non_exhaustive]
decision the crate’s own API stability policy reserves for types whose
doc comment already states a growth expectation. Adding generator #3
later never forces a semver decision this way.
Serialize only, deliberately no Deserialize: the inner &'static str cannot deserialize into a non-'static borrow from an arbitrary
input buffer – matches this crate’s existing precedent for
&'static str-bearing output-only types (CommercialOfferSelection,
src/commercial_catalog/model.rs).
Tuple Fields§
§0: &'static strTrait Implementations§
Source§impl Clone for GeneratorId
impl Clone for GeneratorId
Source§fn clone(&self) -> GeneratorId
fn clone(&self) -> GeneratorId
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more