pub struct MachineEndpoint { /* private fields */ }Expand description
One exact method/path pair and its mandatory authentication mechanism.
Implementations§
Source§impl MachineEndpoint
impl MachineEndpoint
Sourcepub fn authentication(&self) -> MachineAuthentication
pub fn authentication(&self) -> MachineAuthentication
Returns the configured authentication category, without credentials.
Sourcepub fn bearer(
method: Method,
path: impl Into<String>,
token: impl Into<String>,
) -> Result<Self, MachineEndpointError>
pub fn bearer( method: Method, path: impl Into<String>, token: impl Into<String>, ) -> Result<Self, MachineEndpointError>
Registers a strong bearer credential. Only its SHA-256 digest is retained.
Sourcepub fn signed_webhook(
method: Method,
path: impl Into<String>,
verifier: impl MachineRequestVerifier + 'static,
) -> Result<Self, MachineEndpointError>
pub fn signed_webhook( method: Method, path: impl Into<String>, verifier: impl MachineRequestVerifier + 'static, ) -> Result<Self, MachineEndpointError>
Registers an exact signed-webhook route with a mandatory verifier.
Sourcepub fn mutual_tls(
method: Method,
path: impl Into<String>,
verifier: impl MachineRequestVerifier + 'static,
) -> Result<Self, MachineEndpointError>
pub fn mutual_tls( method: Method, path: impl Into<String>, verifier: impl MachineRequestVerifier + 'static, ) -> Result<Self, MachineEndpointError>
Registers an exact route with a trusted transport-identity verifier.
Auto Trait Implementations§
impl !RefUnwindSafe for MachineEndpoint
impl !UnwindSafe for MachineEndpoint
impl Freeze for MachineEndpoint
impl Send for MachineEndpoint
impl Sync for MachineEndpoint
impl Unpin for MachineEndpoint
impl UnsafeUnpin for MachineEndpoint
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