pub struct BaseUriLayer { /* private fields */ }
Expand description
Layer that applies BaseUri
which makes all requests relative to the URI.
Path in the base URI is preseved.
Implementations§
Source§impl BaseUriLayer
impl BaseUriLayer
Sourcepub fn new(base_uri: Uri) -> BaseUriLayer
pub fn new(base_uri: Uri) -> BaseUriLayer
Set base URI of requests.
Trait Implementations§
Source§impl Clone for BaseUriLayer
impl Clone for BaseUriLayer
Source§fn clone(&self) -> BaseUriLayer
fn clone(&self) -> BaseUriLayer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BaseUriLayer
impl Debug for BaseUriLayer
Auto Trait Implementations§
impl !Freeze for BaseUriLayer
impl RefUnwindSafe for BaseUriLayer
impl Send for BaseUriLayer
impl Sync for BaseUriLayer
impl Unpin for BaseUriLayer
impl UnwindSafe for BaseUriLayer
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