Skip to content

Support for Serializing Astronomy API Response Structs #2

@bohdan-mykhailenko

Description

@bohdan-mykhailenko

Problem:
I'm working with the crate to handle astronomical data. I'm encountering difficulties when trying to serialize structs that are designed to match responses from an astronomy API. To efficiently serialize these structs into responses using frameworks like Axum, I need to derive the Serialize trait for all relevant structs.

Proposal:
To enhance the usability of the crate, I propose adding derive macros for the Serialize traits to the existing astronomy API response structs. This would streamline the process of working with these structs and integrating them into web applications.

Example:

#[derive(Serialize, Deserialize)]
pub struct AstronomyResponse{
    // ... fields
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions