pub struct PetstoreClient { /* private fields */ }Implementations§
Source§impl PetstoreClient
impl PetstoreClient
pub fn new(url: &str) -> Self
pub fn with_middleware<M: Middleware + 'static>(self, middleware: M) -> Self
Sourcepub fn list_pets(&self) -> ListPetsRequest<'_>
pub fn list_pets(&self) -> ListPetsRequest<'_>
List all pets
Sourcepub fn create_pets(&self) -> CreatePetsRequest<'_>
pub fn create_pets(&self) -> CreatePetsRequest<'_>
Create a pet
Sourcepub fn show_pet_by_id(&self, pet_id: i64) -> ShowPetByIdRequest<'_>
pub fn show_pet_by_id(&self, pet_id: i64) -> ShowPetByIdRequest<'_>
Info for a specific pet
Auto Trait Implementations§
impl Freeze for PetstoreClient
impl !RefUnwindSafe for PetstoreClient
impl Send for PetstoreClient
impl Sync for PetstoreClient
impl Unpin for PetstoreClient
impl !UnwindSafe for PetstoreClient
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