Skip to content

3.0: mark growing public enums #[non_exhaustive] #86

Closed

Description

@CodingAnarchy

Companion to #81, which covers structs. Mark the public enums that will keep gaining variants as #[non_exhaustive], so adding one is not a breaking change:

  • Error types: HammerworkError, EncryptionError, CronError, SpawnError, PriorityError
  • Events and alerts: JobLifecycleEventType, JobEventType, AlertType, ArchiveEvent, KeyOperation
  • Backend and option choices: StreamBackend, SerializationFormat, AlertTarget, WebhookAuth, KeySource, RetentionPolicy, PartitioningStrategy

Leave JobStatus and JobPriority exhaustive, since matching on every state is useful to users. The Job struct (39 public fields) is covered by #81. Review the other public enums case by case.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions