pub struct HttpCommandAuth {
pub require_token: bool,
pub public_status: bool,
pub verifier: Option<Arc<dyn CommandTokenVerifier>>,
}Expand description
Bearer-token requirements and verifier for HTTP Runtime routes.
Fields§
§require_token: boolWhether command and query endpoints require a bearer token.
public_status: boolWhether unauthenticated callers may read the reduced status response.
verifier: Option<Arc<dyn CommandTokenVerifier>>Token verifier used when authentication is required.
Implementations§
Source§impl HttpCommandAuth
impl HttpCommandAuth
Sourcepub fn insecure_local_for_testing() -> Self
pub fn insecure_local_for_testing() -> Self
Explicitly disables command and query authentication for local tests.
Production hosts should use Self::default or provide a verifier.
Trait Implementations§
Source§impl Clone for HttpCommandAuth
impl Clone for HttpCommandAuth
Source§fn clone(&self) -> HttpCommandAuth
fn clone(&self) -> HttpCommandAuth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for HttpCommandAuth
impl !UnwindSafe for HttpCommandAuth
impl Freeze for HttpCommandAuth
impl Send for HttpCommandAuth
impl Sync for HttpCommandAuth
impl Unpin for HttpCommandAuth
impl UnsafeUnpin for HttpCommandAuth
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