pub struct HttpsEndpoint { /* private fields */ }Expand description
Validated HTTPS API endpoint, optionally including a fixed base path.
Implementations§
Source§impl HttpsEndpoint
impl HttpsEndpoint
Sourcepub fn new_custom(value: &str) -> Result<Self, EndpointError>
pub fn new_custom(value: &str) -> Result<Self, EndpointError>
Explicitly trusts and validates a custom HTTPS credential destination.
The transport sends its bearer token to this origin. value must come
from trusted operator configuration and must never be controlled by a
tenant, request payload, or other untrusted input.
Sourcepub fn identity(&self) -> Result<EndpointIdentity<'_>, EndpointIdentityError>
pub fn identity(&self) -> Result<EndpointIdentity<'_>, EndpointIdentityError>
Returns the normalized scheme, host, effective port, and base path.
Trait Implementations§
Source§impl Clone for HttpsEndpoint
impl Clone for HttpsEndpoint
Source§fn clone(&self) -> HttpsEndpoint
fn clone(&self) -> HttpsEndpoint
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 Freeze for HttpsEndpoint
impl RefUnwindSafe for HttpsEndpoint
impl Send for HttpsEndpoint
impl Sync for HttpsEndpoint
impl Unpin for HttpsEndpoint
impl UnsafeUnpin for HttpsEndpoint
impl UnwindSafe for HttpsEndpoint
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