Skip to content

Enhance Type Safety with better Types #3

@NewtTheWolf

Description

@NewtTheWolf

Description:

Enhance the type safety of the sendblue library by incorporating more robust types such as chrono for date handling, url::Url for URL validation, and creating custom types for parameters and other fields where necessary. This will improve code readability, maintainability, and reduce the likelihood of runtime errors.

Acceptance Criteria:

  • Replace string representations of dates and times with chrono types.
  • Replace string representations of URLs with url::Url types.
  • Implement custom types for parameters that require specific validation or formatting.
  • Update documentation and examples to reflect the changes.
  • Add comprehensive tests to ensure the new types function as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions