Enum ProfessionRegistrationError
#[non_exhaustive]pub enum ProfessionRegistrationError {
UnacquirablePoi {
key: PoiKey,
},
InvalidWorkstation {
key: PoiKey,
reason: String,
},
DuplicateProfession {
key: ProfessionKey,
owners: Vec<String>,
},
ReservedProfession {
key: ProfessionKey,
},
OverlappingPoi {
poi: PoiKey,
professions: Vec<ProfessionKey>,
},
UnknownPoi {
key: PoiKey,
},
UnknownTradeSet {
key: TradeSetKey,
},
UnknownItem {
key: Identifier,
},
UnknownBlock {
key: Identifier,
},
UnknownSound {
key: Identifier,
},
InvalidTradeLevel {
key: ProfessionKey,
level: u8,
},
}Expand description
A candidate registry refusal. A refusal publishes no candidate entries.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnacquirablePoi
A declared custom workstation has no acquisition profession.
InvalidWorkstation
A workstation selector is invalid or conflicts with another POI.
DuplicateProfession
Multiple owners declared one identity; owners are sorted deterministically.
Fields
key: ProfessionKeyThe conflicting profession identity.
ReservedProfession
Vanilla profession identities cannot be replaced.
Fields
key: ProfessionKeyThe referenced resource identity.
OverlappingPoi
Acquisition must have one unambiguous profession per custom POI.
Fields
professions: Vec<ProfessionKey>Conflicting profession identities.
UnknownPoi
The candidate refers to a missing POI.
UnknownTradeSet
The candidate refers to a missing trade set.
Fields
key: TradeSetKeyThe referenced resource identity.
UnknownItem
The candidate refers to a missing item.
Fields
key: IdentifierThe referenced resource identity.
UnknownBlock
The candidate refers to a missing secondary block.
Fields
key: IdentifierThe referenced resource identity.
UnknownSound
The candidate refers to a missing work sound.
Fields
key: IdentifierThe referenced resource identity.
InvalidTradeLevel
A trade level is outside 1–5 or appears more than once.
Trait Implementations§
§impl Clone for ProfessionRegistrationError
impl Clone for ProfessionRegistrationError
§fn clone(&self) -> ProfessionRegistrationError
fn clone(&self) -> ProfessionRegistrationError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more