pub enum SingBoxControllerAuthorization {
NoSecret,
BearerToken(String),
}Expand description
The authorization the sing-box controller expects.
Variants§
NoSecret
The controller is reached without a secret.
BearerToken(String)
The controller is reached with a bearer token.
The token is never rendered: the Debug implementation redacts it.
Trait Implementations§
impl Eq for SingBoxControllerAuthorization
impl StructuralPartialEq for SingBoxControllerAuthorization
Auto Trait Implementations§
impl Forget for SingBoxControllerAuthorization
impl Freeze for SingBoxControllerAuthorization
impl Move for SingBoxControllerAuthorization
impl RefUnwindSafe for SingBoxControllerAuthorization
impl Send for SingBoxControllerAuthorization
impl Sync for SingBoxControllerAuthorization
impl Unpin for SingBoxControllerAuthorization
impl UnsafeUnpin for SingBoxControllerAuthorization
impl UnwindSafe for SingBoxControllerAuthorization
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.