pub struct Iop { /* private fields */ }Implementations§
Source§impl Iop
impl Iop
pub fn new(app_key: &str, secret: &str) -> Self
pub fn set_app_info(self, app_key: &str, secret: &str)
pub fn set_business_domain(self, business_domain: &str)
pub fn set_system_domain(self, system_domain: &str)
pub fn set_port(self, port: u32)
pub fn set_httpmethod(self, httpmethod: HttpMethod)
pub fn set_api_name(&mut self, api_name: &str)
pub fn get_api_name(&self) -> &str
pub async fn generate_security_token( &self, code: String, uuid: String, ) -> Result<Response>
pub async fn generate_token( &self, code: String, uuid: String, ) -> Result<Response>
pub async fn refresh_security_token( &self, refresh_token: String, ) -> Result<Response>
pub async fn refresh_token(&self, refresh_token: String) -> Result<Response>
pub async fn request( &self, api: ApiName, request_parameters: Option<RequestParameters>, ) -> Result<Response>
pub fn sign( secret: &str, params: RequestParameters, sign_method: &str, ) -> String
Auto Trait Implementations§
impl Freeze for Iop
impl RefUnwindSafe for Iop
impl Send for Iop
impl Sync for Iop
impl Unpin for Iop
impl UnwindSafe for Iop
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more