pub struct Config {
    pub kafka: HashMap<String, String>,
    pub shutdown_timeout_ms: u64,
    pub update_account_topic: String,
    pub slot_status_topic: String,
    pub program_ignores: Vec<String>,
    pub publish_all_accounts: bool,
}
Expand description

Plugin config.

Fields

kafka: HashMap<String, String>

Kafka config.

shutdown_timeout_ms: u64

Graceful shutdown timeout.

update_account_topic: String

Kafka topic to send account updates to.

slot_status_topic: String

Kafka topic to send slot status updates to.

program_ignores: Vec<String>

List of programs to ignore.

publish_all_accounts: bool

Publish all accounts on startup.

Implementations

Read plugin from JSON file.

Create rdkafka::FutureProducer from config.

Trait Implementations

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more