#[gobject]
Expand description

Define GObject based on a struct

Example

#[gobject(id, name, selected)]
struct Event {
    id: String,
    name: String,
    selected: bool,
}

Supported field types

  • String
  • bool