iota-sdk 2.0.0-beta.1

The IOTA SDK provides developers with a seamless experience to develop on IOTA by providing account abstractions and clients to interact with node APIs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2023 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

use serde::{Deserialize, Serialize};

use crate::{client::node_manager::node::Node, types::api::plugins::participation::types::ParticipationEventId};

/// Options when registering participation events.
/// If `events_to_register` is an empty `Vec` or `None`, then every event being tracked by the node will be registered.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ParticipationEventRegistrationOptions {
    pub node: Node,
    pub events_to_register: Option<Vec<ParticipationEventId>>,
    pub events_to_ignore: Option<Vec<ParticipationEventId>>,
}