pub enum NatsAuthMode {
Token,
Users,
}Expand description
Which authentication the operator expects the broker to apply to every
connection. An expectation, not a switch: it changes nothing about how
any process connects, it only defines which connection reports the
backend raises a warning for (see the backend’s nats_auth_findings).
Variants§
Token
One fleet-wide token. Today’s shape, and what an unset field means.
Users
Per-role NATS users (authorization { users: [...] }).
Implementations§
Trait Implementations§
Source§impl Clone for NatsAuthMode
impl Clone for NatsAuthMode
impl Copy for NatsAuthMode
Source§impl Debug for NatsAuthMode
impl Debug for NatsAuthMode
Source§impl Default for NatsAuthMode
impl Default for NatsAuthMode
Source§impl<'de> Deserialize<'de> for NatsAuthMode
impl<'de> Deserialize<'de> for NatsAuthMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NatsAuthMode
Source§impl PartialEq for NatsAuthMode
impl PartialEq for NatsAuthMode
Source§impl Serialize for NatsAuthMode
impl Serialize for NatsAuthMode
impl StructuralPartialEq for NatsAuthMode
Auto Trait Implementations§
impl Freeze for NatsAuthMode
impl RefUnwindSafe for NatsAuthMode
impl Send for NatsAuthMode
impl Sync for NatsAuthMode
impl Unpin for NatsAuthMode
impl UnsafeUnpin for NatsAuthMode
impl UnwindSafe for NatsAuthMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.