pub enum PathMode {
Direct,
UnderBase,
}Expand description
How a contract path template is joined onto a base URL.
The default is PathMode::Direct, which is the behaviour every
existing caller of the shared builder already has.
Variants§
Direct
The path template is root-absolute: any path prefix on the base is
dropped, and /v1/sessions addresses the server’s own root.
UnderBase
The path template is joined under the base’s path, preserving a
gateway prefix such as /<gateway>/tapes/.
Trait Implementations§
impl Copy for PathMode
impl Eq for PathMode
impl StructuralPartialEq for PathMode
Auto Trait Implementations§
impl Freeze for PathMode
impl RefUnwindSafe for PathMode
impl Send for PathMode
impl Sync for PathMode
impl Unpin for PathMode
impl UnsafeUnpin for PathMode
impl UnwindSafe for PathMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.