Skip to content

#[derive(uniffi::Record)] should support #[uniffi::skip] attribute to skip fields #2404

Open
@oriongonza

Description

@oriongonza

Right now the only way to pass the struct through uniffi with different fields is to create a "close but not quite" struct with the missing fields.

Serde has lots of custom attributes to control deserialization, uniffi could support a few of those. #[uniffi::skip] is almost trivial to implement.

This doesn't make much sense for Object or Enum, though.

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