pub struct OpenApiClient { /* private fields */ }Implementations§
Source§impl OpenApiClient
impl OpenApiClient
pub fn new() -> Result<Self, String>
pub fn with_base_url(base_url: &str) -> Result<Self, String>
pub fn client_token( &self, client_key: &str, client_secret: &str, ) -> Result<Value, String>
pub fn access_token( &self, client_key: &str, client_secret: &str, code: &str, ) -> Result<Value, String>
pub fn refresh_token( &self, client_key: &str, refresh_token: &str, ) -> Result<Value, String>
pub fn renew_refresh_token( &self, client_key: &str, refresh_token: &str, ) -> Result<Value, String>
pub fn request(&self, spec: RequestSpec<'_>) -> Result<Value, String>
Auto Trait Implementations§
impl !RefUnwindSafe for OpenApiClient
impl !UnwindSafe for OpenApiClient
impl Freeze for OpenApiClient
impl Send for OpenApiClient
impl Sync for OpenApiClient
impl Unpin for OpenApiClient
impl UnsafeUnpin for OpenApiClient
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