Skip to main content

Module credentials

Module credentials 

Source
Expand description

NATS credentials, that can be turned into async_nats::ConnectOptions

Structs§

NatsJwtCredentials
Credentials to authenticate to a NATS server via JWT and Private key.

Enums§

NatsCredentials
Information required to authenticate against NATS server

Traits§

Env 🔒
A thin wrapper around env::Vars to allows dummy implementations for unit testing. Code that deals with env::Vars is often hard to test, since altering env vars in a test may affect other tests that are running concurrently. This trait can easily be implemented for a std::collections::HashMap, thus keeping updates locally.

Type Aliases§

EnvVarValue 🔒
A value taken from an Environment Variable