pub fn new<T>(client: Client, middleware_stack: T) -> Self
    where
        T: Into<Box<[Arc<dyn Middleware>]>>,
    {
        ClientWithMiddleware {
            inner: client,
            middleware_stack: middleware_stack.into(),
        }
    }
/// See [`ClientBuilder`] for a more ergonomic way to build `ClientWithMiddleware` instances.
See [`ClientBuilder`] for a more ergonomic way to build `ClientWithMiddleware` instances.
See [ ` ClientBuilder ` ] for a more ergonomic way to build ` ClientWithMiddleware ` instances .
pub fn new<T>(client: Client, middleware_stack: T) -> Self
    where
        T: Into<Box<[Arc<dyn Middleware>]>>,
    {
        ClientWithMiddleware {
            inner: client,
            middleware_stack: middleware_stack.into(),
        }
    }
pub fn new < T > ( client : Client , middleware_stack : T ) -> Self where T : Into < Box < [ Arc < dyn Middleware > ] > > , { ClientWithMiddleware { inner : client , middleware_stack : middleware_stack . into ( ) , } }
See [`ClientBuilder`] for a more ergonomic way to build `ClientWithMiddleware` instances.
See [ ` ClientBuilder ` ] for a more ergonomic way to build ` ClientWithMiddleware ` instances .
client
Client
middleware_stack
T
client
Client
middleware_stack
T