pub struct Endpoint(/* private fields */);Expand description
A canonical absolute hierarchical base URL whose path always ends in /.
Implementations§
Source§impl Endpoint
impl Endpoint
Sourcepub fn parse(input: &str) -> Result<Self, EndpointError>
pub fn parse(input: &str) -> Result<Self, EndpointError>
Parses and canonicalizes an endpoint.
The input must be an absolute hierarchical URL with a host and without a query or fragment. Its path is an endpoint prefix, not a Worldspace path. A trailing slash is appended when absent so RFC 3986 relative-reference resolution preserves the final prefix segment. The supplied scheme is preserved; scheme and transport security are deployment concerns.
Trait Implementations§
impl Eq for Endpoint
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpoint
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