Struct swagger_client::ContextWrapper
[−]
[src]
pub struct ContextWrapper<'a, T> where
T: 'a, { /* fields omitted */ }
Context wrapper, to bind an API with a context.
Methods
impl<'a, T> ContextWrapper<'a, T>
[src]
fn new(api: &'a T, context: Context) -> ContextWrapper<'a, T>
[src]
Create a new ContextWrapper, binding the API and context.
fn api(&self) -> &T
[src]
Borrows the API.
fn context(&self) -> &Context
[src]
Borrows the context.
Trait Implementations
impl<'a, T> Debug for ContextWrapper<'a, T> where
T: 'a + Debug,
[src]
T: 'a + Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<'a, T: Api> ApiNoContext for ContextWrapper<'a, T>
[src]
fn upload_api(
&self,
api_and_token: ApiAndToken
) -> Box<Future<Item = UploadApiResponse, Error = ApiError> + Send>
[src]
&self,
api_and_token: ApiAndToken
) -> Box<Future<Item = UploadApiResponse, Error = ApiError> + Send>
Upload an API