Skip to content

Support Nested more convenient #37

@loyd

Description

@loyd

Right now it can be done using separate arrays:

#[derive(Debug, Row, Serialize, Deserialize)]
struct MyRowOwned {
    no: u32,
    #[serde(rename = "nested.a")]
    a: Vec<f64>,
    #[serde(rename = "nested.b")]
    b: Vec<f64>,
}

However it can be more convenient to detect following pattern:

#[derive(Debug, Row, Serialize, Deserialize)]
struct MyRowOwned {
    no: u32,
    nested: Vec<Nested>,
}

#[derive(Debug, Row, Serialize, Deserialize)]
struct Nested {
    a: f64,
    b: f64,
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions