async_nats/
auth.rs

1use crate::{options::CallbackArg1, AuthError};
2
3#[derive(Default)]
4pub struct Auth {
5    pub jwt: Option<String>,
6    pub nkey: Option<String>,
7    #[allow(dead_code)]
8    pub(crate) signature_callback: Option<CallbackArg1<String, Result<String, AuthError>>>,
9    pub signature: Option<Vec<u8>>,
10    pub username: Option<String>,
11    pub password: Option<String>,
12    pub token: Option<String>,
13}
14
15impl Auth {
16    pub fn new() -> Auth {
17        Auth::default()
18    }
19}