pub struct EndpointMiddleware {
pub token: String,
pub version: String,
pub wrap: Option<String>,
pub namespace: Option<String>,
}
Expand description
A MiddleWare for adding version and token information to all requests.
Implements MiddleWare to provide support for prepending API version information to all requests and adding a Vault token to the header of all requests. This is automatically passed by the API functions when an endpoint is executed.
Fields§
§token: String
§version: String
§wrap: Option<String>
§namespace: Option<String>
Trait Implementations§
source§impl Clone for EndpointMiddleware
impl Clone for EndpointMiddleware
source§fn clone(&self) -> EndpointMiddleware
fn clone(&self) -> EndpointMiddleware
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 EndpointMiddleware
impl Debug for EndpointMiddleware
source§impl MiddleWare for EndpointMiddleware
impl MiddleWare for EndpointMiddleware
Auto Trait Implementations§
impl Freeze for EndpointMiddleware
impl RefUnwindSafe for EndpointMiddleware
impl Send for EndpointMiddleware
impl Sync for EndpointMiddleware
impl Unpin for EndpointMiddleware
impl UnwindSafe for EndpointMiddleware
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)