Skip to content

Support optional field #410

@carlocorradini

Description

@carlocorradini

Add support for optional field:

  • @optional annotation in IDL

    struct MyStruct {
        @optional
        u8 optional_field;
    };
  • Option<...> in Rust

    #[derive(DdsType)]
    pub struct MyStruct{
        pub optional_field: Option<u8>
    }

Metadata

Metadata

Assignees

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